Catch DB error |
What about exception handling? http://php.net/manual/en/language.exceptions.php
You're probably using some sort of recursion like foreach, for or while so you could try to process a table column but if something goes wrong, you hava a chance of handing the error with catch and then log the error and do whatever you want to do.
Best regards,
José Postiga Senior Backend Developer |
Messages In This Thread |
Catch DB error - by ComputingFroggy - 01-21-2016, 06:15 PM
RE: Catch DB error - by Diederik - 01-22-2016, 01:33 AM
RE: Catch DB error - by josepostiga - 01-22-2016, 02:40 AM
RE: Catch DB error - by ComputingFroggy - 01-22-2016, 05:40 AM
RE: Catch DB error - by josepostiga - 01-22-2016, 05:49 AM
RE: Catch DB error - by ComputingFroggy - 01-22-2016, 06:41 AM
RE: Catch DB error - by ComputingFroggy - 01-22-2016, 08:18 AM
RE: Catch DB error - by Shawn - 01-27-2016, 06:41 PM
|