Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

cannot connect to db


Guest

Recommended Posts

Posted

I ocasionally get a problem with my db this is usually easy to resove by doing a repair in my Cpanel, however whilst the site is not accessable customers can see the mysql error.

 

Is there anyway that should a db error arise that we can show a down for maintenance page?

 

Many thanks

Posted

Interesting question!

 

Is there maybe a way to make a link from the "or die(mysql_error())" to the 'store is down for maintenance' contribution?

 

Peter

Posted

do a redirect to the other page if you detect the error

 

for instance:

tep_db_connect() or tep_redirect('http://www.mysite.com/error_page.html');

Archived

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

×
×
  • Create New...