Some times my website shows databse connection fail message. Is there a way to replace that warning with custom message.
This is the warning message
Warning: mysql_connect() [function.mysql-connect]: Too many connections in /home/public_html/qa-include/qa-db.php on line 66
Could not establish database connection. Please check the username, password and hostname in the config file, and if necessary set up the appropriate MySQL user and privileges.
Custom message: No databse connection. Visit the website after sometime.