Hi, I would like to catch errors in PHP/MySQL and display a generic error message of some sort rather than just 'undefined' or whatever else it may be.

Can you advise how to correctly do this?