Do not send any email when initial mysql connection cannot be made
because the server is down. Instead print a useful error message. Do not send any email when the server goes away while a web page is running, only send email when the error is a malformed query or other error not associated with the web server shutting down.
Showing with 80 additions and 24 deletions