RE: [PHP] Error notification and pretty error page

2002-01-21 Thread Alex Dowgailenko
Create a function like error_handling() in it have it do echo "We're sorry, we are currently experiencing technical difficulties" blah blah blah and have it email you whatever mysql_error() says. then do: mysql_query("SELECT whatever FROM whatever") or die(error_handling()); > -Original Me

Re: [PHP] Error notification and pretty error page

2002-01-21 Thread Jimmy
Hi Dan, > How can i include error notification, like if an MySQL error occurs, > to notify me of the offending page and what the error was, while > having the page die quietly or nicely, like an message saying that > the webmaster will be notified please continue? you can make a generic function