News:

MyKidsDiary.in :: Capture your kids magical moment and create your Online Private Diary for your kids

Main Menu

Error Handling In MySQL

Started by VelMurugan, Dec 16, 2008, 09:55 PM

Previous topic - Next topic

VelMurugan

Error Handling

When performing any operation on MySQL using PHP, if any error occurs, our script will not work properly. A single error can cause hundreds of lines of code to not work properly. Here, PHP provides some special functions to print more informative error messages to the browser to aid debugging. MySQL gives an error message and an error number when an operation fails. PHP provides the function mysql_error() to print error message and mysql_errno() to print error number to browser, which becomes very useful while debugging the code. You can easily get output for mysql_error() if any error occurs while executing code given in this article. You can just replace mysql_error() with mysql_errno() to get an error number in place of error message.

Source : Techxcel

thiruvasagamani

Hello velu
What are the types of Error handling ?
please explain...
Thiruvasakamani Karnan