How to catch database exception and not display it to browser |
[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; 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-23-2010, 09:10 PM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 01:28 AM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 01:33 AM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 01:48 AM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 02:25 AM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 02:32 AM
How to catch database exception and not display it to browser - by El Forum - 03-24-2010, 02:48 AM
|