Welcome Guest, Not a member yet? Register   Sign In
Database log VS Database debug?
#1

[eluser]fMertins[/eluser]
Hi there!

I'm trying to log my database errors whithout showing them to user (screen).

If I enable the parameter at "database.php":

Code:
$db['default']['db_debug'] = TRUE;

I get errors logged, ok, but they are *also* showed to user.

And if I disable this database debug parameter, the errors aren't logged...

So, is there any way to log database errors whithout showing them to user?

Thank you!
#2

[eluser]Aken[/eluser]
Your application should never throw database errors, because that means you have errors in your query. You should sanitize data up until the query, and then perform the query if the data is appropriate.




Theme © iAndrew 2016 - Forum software by © MyBB