Guest Posted March 13, 2006 Posted March 13, 2006 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
petercascio Posted March 13, 2006 Posted March 13, 2006 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
Guest Posted March 13, 2006 Posted March 13, 2006 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');
Recommended Posts
Archived
This topic is now archived and is closed to further replies.