shopscifi Posted November 11, 2004 Posted November 11, 2004 Hi I will start by saying my web-host is RUBBISH. They are having some downtime on their sql server and I would like to replace the warning Warning: mysql_connect() [function.mysql-connect]: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (111) in /***/****/****/****/catalog/includes/functions/database.php on line 19Unable to connect to database server! with a simple metarefresh to push the user onto a simple price list catalog with paypal buy buttons. So all i want to know is how to replace the warning above with some html code. Where do I look? Cheers
Guest Posted November 11, 2004 Posted November 11, 2004 You can comment out the entire page (index.php) and then type in some html at the top. You will get this error if the code is run on the server and the database isn't present. . You can't avoid that that I know of. I'd rename index.php to index.php.old and then create a new one with your html or a simple re-direct. Hope that helps. HiI will start by saying my web-host is RUBBISH. They are having some downtime on their sql server and I would like to replace the warning with a simple metarefresh to push the user onto a simple price list catalog with paypal buy buttons. So all i want to know is how to replace the warning above with some html code. Where do I look? Cheers <{POST_SNAPBACK}>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.