Validating duplicate db records with PHP - TechRepublic
Question
March 7, 2007 at 06:46 PM
giantsand98

Validating duplicate db records with PHP

by giantsand98 . Updated 18 years, 8 months ago

I have an account profile update page that I would like to turn off PHP error reporting on and instead catch unique value constraint errors in a user friendly fasion using PHP instead.

Is there a way to capture PHP errors (even with them turned off at runtime) and use them to decide what custom error messages to display to the user?

Any other suggestions would be appreciated as well.

This discussion is locked

All Comments