Welcome Guest, Not a member yet? Register   Sign In
Database Query Error Hnadling
#1

[eluser]sachin.singh[/eluser]
hi,

I have an problem in hiding the DB error.

$stmt = “SQL having query error”;

$query = $this->db->query($stmt);

intimidate throws an error to user with query.
how to hide the DB error.


Database Error Occurred
Error Number: 1064



Regards
sachin singh
#2

[eluser]stommert[/eluser]
open your database config file and set

$db['default']['db_debug'] = FALSE;

all database errors will be hidden.
#3

[eluser]sachin.singh[/eluser]
Thanks A lot stommer.

Its working.

:coolsmile:




Theme © iAndrew 2016 - Forum software by © MyBB