Questions tagged as 'php'

0
answers

Warning: sqlsrv_fetch_array () expects parameter 1 to be resource, boolean given in

I have a form that enters people, but I have problems validating using sqlsrv_num_rows() the error is as follows:    Warning: sqlsrv_num_rows () expects parameter 1 to be resource, boolean given in <?php include "conexion.php"; f...
asked by 09.07.2018 / 21:49
0
answers

Payment error with paypal when wanting to start session

I'm having a problem that I do not know since it's my first time using the paypal integration ... I am trying to make the integration for recurring payments and I am doing it in the following way ... On the page where the packages and the...
asked by 04.07.2018 / 03:31
1
answer

I do not receive values from SELECT FROM but from INSERT INTO and if the record exists (MVC, PDO, MYSQL)

Hi, I'm working with PHP and MySql with PDO and the model view controller (MVC) but I have an error when trying to do a SELECT * on the model side. My intrigue is that it works when I do INSERT INTO and when it's a SELECT. what I do is a validat...
asked by 04.07.2018 / 16:39
1
answer

I have a problem with my edit button

I already have everything, I just need the edit button but it is not edited, I pass the HTML and the php. <?php include('php/registrar.php'); if (isset($_GET['edit'])) { $id=$_GET['edit']; $editar_estado=true; $r...
asked by 04.07.2018 / 20:02
2
answers

Redirect to an action or action Javascript PHP

I have this doubt, I want to make a validation if the condition is met, show me an alert and redirect me to a specific page but since I am working in MVC, I must do it through an action: the code I have is the next: <script type="text...
asked by 04.07.2018 / 13:10
0
answers

Array in Mysql WHERE LIKE? using explode

How can I fix my code? I need that my search engine can find my posts by entering an array of words but I look for it in 3 different tables that I have in my query, for example if I put 3 words that look for them in my keywords, title or body_va...
asked by 02.07.2018 / 21:18
2
answers

How to achieve an autocompletion in dynamic fields

Some time ago I have been looking for a solution to this problem, I have found many videotutorials and pages that report on the subject. But as much as I've tried, I can not find the solution to the problem. The idea is that you can generate...
asked by 02.07.2018 / 01:14
1
answer

How to receive data from php to ajax?

I am practicing PHP POO with javascript and ajax, I have my code ready with the sql query: public function SessionStart() { $conexion = $this->conectar(); $sql = "SELECT * FROM usuarios WHERE usuario = ? AND pass = ?";...
asked by 02.07.2018 / 03:47
1
answer

Enter data using Php to MySql in multiuser

I would like to enter data at Mysql , I tried to use the following sentence: $query="SELECT MAX(cod_unico)+1 ultimo FROM $tabla"; but this does not allow it because it only brings you the last id but at the time of entr...
asked by 02.07.2018 / 07:00
1
answer

Two submit to Edit and Insert in the same Form

This is my form: <form name='form_update' method='post' id="registerUser" action='update.php'> <input type='text' class='form-control' name='nombre' value=<?=$nombre; ?> /> <input type='text' class='form-control' name='ne...
asked by 13.07.2018 / 18:35