Welcome Guest, Not a member yet? Register   Sign In
How to catch database exception and not display it to browser
#4

[eluser]stommert[/eluser]
you probably have to proces the log file.
When a database / query error occurs, something simular to
Code:
ERROR - 2010-03-01 09:43:36 --> Query error: You have an error in your SQL syntax;
check the manual that corresponds to your MySQL server version for the right syntax to use near
'tbl_linkpartner_type_translations.translation_id =  1 ORDER BY tbl_linkp' at line 11
this will be written in your log.
1. So you could search for 'Query error:' and do whatever you like with the result.
2. You could extend the logging library and insert it in a db table and than query it. You might want to be careful with this option, because this table has the potential to grow fast.here is a link on extending the log library


Messages In This Thread
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 01:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB