View Single Post
  #4 (permalink)  
Old 02-27-2008, 06:42 PM
notrub225 notrub225 is offline
Senior Member
 
Join Date: Jan 2008
Location: chicago
Posts: 101
Default

Quote:
Originally Posted by murugesanme View Post
How to print the mysql error ? If direct php , we can use mysql_error(). But i dont know how to find here.?? plz reply as soon as possible
You need to enable error reporting in your bootstrap file. This can be done with the following code:

PHP Code:
// Error Reporting
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors''on');

// format error messages for better readability. Next 2 lines are optional
ini_set('error_prepend_string''<pre>');
ini_set('error_append_string''</pre>'); 
Reply With Quote