Every once in a while, my MySQL server hiccups and doesn't return a few of the queries on the page. Then it shows those big ugly warnings, which I don't want my visitors to see.

Would it be possible to display a kind error message whenever the server hiccups telling the user to try again instead of seeing those ugly warning messages...

I know how to put an error message in when the MySQL server doesn't respond at all, but when the server hiccups, about half of the queries are returned and half of them aren't.

Thanks.