Is there a tutorial or something that would help me figure out how to put up a
custom error page? I have a PHP page that is accessing a MySQL table which has
NOT NULL values for some fields. When the user does not enter data into a
field that requires data I want to be able to trap the error message that MySQL
throws and give the user a custom error page instead.
Or, should I be trapping the errors within my PHP and not allowing MySQL to be
the arbiter of errors?
Which approach is the correct one?