Instruction prepared with PHP and MySQL without using mysqli

advertisements

I'd like to know if it is possible to create a prepared statement with PHP and MySQL using the mysql library rather than the mysqli library.

I can't find anything on the PHP documentation.

Thanks.


The PHP documentation quite clearly states (at the end of that page) that the mysql extension does not support prepared statements. An alternative to mysqli that supports prepared statements would be PDO_MYSQL.