Top "Mysqli" questions

The mysqli PHP extension is a PHP database driver.

Is mysqli_real_escape_string safe?

I´m new in PHP and I´ve realised that my database connection, using a php form (with user and …

php mysqli sql-injection
How can I view the contents of a prepared statement?

I'm working on learning to use prepared statements with mysqli in PHP and usually, if I'm having a problem with …

php mysql mysqli
MySQLi query results: Best approach, do you close, free, both?

I have some questions about using MySQLi, queries, and related memory management. The code here is just to clarify my …

php mysqli
How to insert the record with MySQL NOW() function in MySQLi with bind_param?

I need to execute this mysql query in MySQLi PDO with bind parametr in PHP: mysql_query("INSERT INTO `posts` (…

php mysql mysqli sqlbindparameter
mysqli: can it prepare multiple queries in one statement?

I would like to know if i can prepare one mysqli statement that executes multiple queries: mysqli->prepare(query1 ...1,2,3 …

php mysql mysqli prepared-statement
Converting dates with PHP for DATETIME in SQL

I have a forum in PHP which takes a date like in the form dd/mm/yyyy hh:mm:ss. …

php mysqli sqldatatypes type-conversion
How to bind mysqli bind_param arguments dynamically in PHP?

I have been learning to use prepared and bound statements for my sql queries, and I have come out with …

php arrays mysqli bind prepared-statement
Why is object oriented PHP with mysqli better than the procedural approach?

I have been using the procedural approach with mysql* until recently. Now I want to shift to mysqli and object …

php object mysqli procedural-programming
Php mysqi bind_param Number of variables doesn't match number of parameters in prepared statement

This has to be a newbie mistake, but I'm not seeing it. Here is a snippet from my code: $mysqli = …

php mysqli prepared-statement
Fatal error: Call to undefined function mysqli_init()

I have a really strange error. My httpd server have been working fine until last Wednesday, when I uninstalled the …

php mysql apache mysqli phpinfo