Welcome Guest, Not a member yet? Register   Sign In
how to hide A Database Error Occurred.....................
#7

[eluser]toopay[/eluser]
Simply set (within config/database.php)
Code:
$db['default']['db_debug'] = TRUE;
into FALSE. Thus, every query() execution will returning FALSE if it fail, then you could handle the error yourself. But i agree with those black cat Smile, fix that error.

The error is in your SQL statement, not by user input, which in this case, CI try to fails gracefully, instead outputing 500 internal server error, which probably will be more difficult to you to debug.


Messages In This Thread
how to hide A Database Error Occurred..................... - by El Forum - 03-02-2012, 10:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB