Quote:
Originally Posted by murugesanme
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>');