Questions tagged as 'mysqli'

1
answer

Call to a member function bind_param ()

I am a beginner in PHP and am getting this error when trying to do an insert in the database using Mysqli functions:    Fatal error: Call to a member function bind_param() on string in C:\xampp\htdocs\Uc16\cadastro.php on line 5...
asked by 24.10.2017 / 19:20
2
answers

Explanation of login and profile validation code [closed]

I've been learning php though (I do not know if it's customary for a beginner) the code is getting a mess as I'm trying new things. I took some lessons on YouTube channel Celke however despite being well didactic some of the times it seems to me...
asked by 02.04.2017 / 04:50
1
answer

Error Warning: mysqli_fetch_array () and no error returned in mysqli_error

I have a simple error and can not find a solution, it seems to me that my problem is different from this answer here . The error message is this: Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, array given in **** o...
asked by 02.03.2017 / 16:38
1
answer

Is it possible to list the columns used in a SELECT in mysqli PHP?

I have the query SELECT coluna1, coluna2... FROM tabela I wonder if there is any method in the mysqli class to return those columns that were used in the query, even though query does not return records. In a% return% of reco...
asked by 19.12.2016 / 13:03
1
answer

"mysqli_connect" does not work

I can not use the "mysqli_connect" function. Can someone help me? You are returning the following error:    Fatal error: Constant expression contains invalid operations in   /home/vagrant/Projects/products/app/Database/Connection.php on line...
asked by 06.05.2017 / 17:00
3
answers

INSERT with prepare does not work

I'm trying to insert data into the database using mysqli prepare but are not inserting the data, and does not show any error Questions ::: What am I doing wrong in this code below? Is this the best way to do it? Could you put an exam...
asked by 27.05.2017 / 15:16
1
answer

Filter table php mysql by date

I have a table in a php page that displays the clients who have submitted leads to the site. How can I create an input where the user places a date and only shows the leads sent on this date? <?php header('Content-Type: text/html; charset=u...
asked by 31.10.2016 / 18:35
2
answers

Check if data already exists in the bank with codeigniter

I am starting with codeigniter using the active record to make the conversation with the bank, and wanted to know how do I know if an email already exists in db, would it list all emails and create a foreache doing the verification? Is there a s...
asked by 19.12.2015 / 20:13
1
answer

How to use mysql_result with MySQLi?

I would like to know how to use mysql_result in mysqli I'm not getting it, I was looking at the php.net site and the only thing I saw was mysqli_data_seek if anyone can help me ... Code I'd like to pass to mysql...
asked by 18.12.2015 / 01:59
1
answer

Autocomplete: JSON + PHP

With the codes below my output that comes after typing "Al" is only "Albania", and it comes duplicated in autocomplete. The result that comes in the chrome console is: > {"0":"Albania","country_name":"Albania"} When I run the query in th...
asked by 25.09.2015 / 04:42