Questions tagged as 'mysqli'

3
answers

problesmas with mysqli_num_rows and mysqli prepared queries

Good afternoon community stack , I'm doing some queries prepared with mysqli the query is successful but if agrgo mysqli_num_rows throws me error. example this is the code that throws me wrong ... $me=$_SESSION["id"]; $name=$_SES...
asked by 24.08.2018 / 22:43
1
answer

Php - multiple "select" queries using prepared statement

The following code has the function of receiving multiple page ids, executing a procedure to obtain your data and returning an array with all this information. The function works fine but only when it is 1 iteration, is there something that i...
asked by 24.08.2018 / 00:57
2
answers

Warning "Undefined variable: row in ..."

I have tried to follow a tutorial and adapt it to the need to autocomplete a form by means of an input (with Send button). I get the error:    Notice: Undefined variable: row in C: \ xampp ... \ patientsearch.php on line 61. It also sh...
asked by 29.05.2018 / 06:16
2
answers

Query to get quarterly data

Very good, I have a query that is generated by making a selection by means of a <select> . In the <select> you have to choose the month and the year, and send the variables to a query where you extract the data for that...
asked by 08.06.2018 / 10:25
1
answer

how to make a mysqli function for a search engine?

I want to make a contact search engine of those who are your friends only and not others as well as whatsapp does but I do not know how to make a SQL table to make the query.    I passed this code but it does not work for me example: $SQL_...
asked by 22.06.2018 / 23:32
2
answers

Help! Problems filling a table dynamically with AJAX

I have tried to fill a table with data that is in a database, all through ajax. The query with the database is fine, like the sending of that data from a php file to a js file through ajax, the problem is filling the table with that data, only o...
asked by 01.05.2018 / 00:09
1
answer

Problems with AJAX and JSON Fatal error: Uncaught Error: Call to undefined function jason_encode ()

veran I have a problem sending and receiving data by AJAX. I tried to make a user login using ajax but it did not work for me. The code I have is the following: HTML FORM AND AJAX FUNCTION: <!DOCTYPE html> <html lan...
asked by 21.04.2018 / 23:35
1
answer

Get the value of a php table

I am currently doing a php to make a login and redirect users, if the login matches and appears, then go to check if it is admin or not, for this, the query should return in the select the role, the doubt is, how do I get the role out and then c...
asked by 03.05.2018 / 11:13
1
answer

How to get the "name" and not the "id" in jQuery ..? From MYSQL

I am making an order form, I use jquery, in this case, after completing the form, I added a "check data" button in which I send all the data to another form with: var TratamientoOD = $('#TratamientoOD').val() var familiaOI = $('#familiaOI'...
asked by 20.08.2018 / 22:50
1
answer

How to fix Uncaught Error: Call to undefined function mysql_fetch_array () [closed]

I am trying to make a table that shows the data of the pet table by means of an array, it is expected that all the fields of the pet table will be shown, but only one error appears Fatal error: Uncaught Error: Call to undefined function mysql_f...
asked by 29.03.2018 / 01:54