Jaime Olivares
asked on
URGENT. Hide warning message when I can't connect with my SQL server
Hi all,
I am experimenting troubles with my (ultra-cheap) mysql server. Connection string is:
$dbh=mysql_connect ($hostName, $usr, $pwd);
if ($dbh) {
// etcetera
But when there is an database error I still want to show some information and avoid this warning message:
Warning: Too many connections in /var/apache/htdocs/tecnolo gico/index .php on line 16
Warning: MySQL Connection Failed: Too many connections in /var/apache/htdocs/tecnolo gico/index .php on line 16
I want to show a message like "Page in maintenance. Please try in some minutes." and an Icon.
How do I can avoid these annoying messages?
Thanks in advance.
I am experimenting troubles with my (ultra-cheap) mysql server. Connection string is:
$dbh=mysql_connect ($hostName, $usr, $pwd);
if ($dbh) {
// etcetera
But when there is an database error I still want to show some information and avoid this warning message:
Warning: Too many connections in /var/apache/htdocs/tecnolo
Warning: MySQL Connection Failed: Too many connections in /var/apache/htdocs/tecnolo
I want to show a message like "Page in maintenance. Please try in some minutes." and an Icon.
How do I can avoid these annoying messages?
Thanks in advance.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks,
Jaime.