How to Log MySQL Errors in PHP
– There is no need to provide the link variable in case your PHP code does not open multiple MySQL connections to multiple databases. This way, PHP will automatically assume that you are referring to a database that was last opened by MySQL using the “mysql_connect()” function.
– If you are still finding it difficult to use echo command and log the MySQL errors in PHP, then you can consult a professional PHP developer and ask him for help.
– Image courtesy: creativedev.in
Copy and paste this URL into your WordPress site to embed
Copy and paste this code into your site to embed