Jump to content

MySql error handling


starphp

Recommended Posts

Hello,

 

I have searched in this forum but couldn't find any topics related to my question.. so I wish to post here.

 

Like php error handling, Is there any technique to log MySql errors, the errors returned during the execution of mysql query ?

 

I wish to log errors and redirect to another page, so user doesn't see any mysql errors.

 

I found that, it can be achieved by adding die() at the end of each msql query but it is time consuming..

 

Thank You Team

Link to comment
https://forums.phpfreaks.com/topic/157689-mysql-error-handling/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.