Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Database problems - need temp solution


shopscifi

Recommended Posts

Posted

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 19

Unable 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

Posted

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.

 

 

 

 

 

 

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...