2007-02-26, 06:33 AM
Hi
Whenever there is a mysql error in any page, it is displaying the actual query in that page. like
MySQL error: 1062
Duplicate entry 'bot=msnbot' for key 1
Query: INSERT INTO sessions (uid, sid, time, ip, location, useragent, location1, location2, nopermission) VALUES ('0', 'bot=msnbot', '1172341999', '207.46.98.70', '/forum/showthread.php?tid=70&pid=85', 'msnbot/1.0 (+http://search.msn.com/msnbot.htm)', '0', '70', '0')
I would like this page to be replaced with some generic error message say "An error occured. Please try again later ". something like that. Is there any way for doing this?
Thanks
Whenever there is a mysql error in any page, it is displaying the actual query in that page. like
MySQL error: 1062
Duplicate entry 'bot=msnbot' for key 1
Query: INSERT INTO sessions (uid, sid, time, ip, location, useragent, location1, location2, nopermission) VALUES ('0', 'bot=msnbot', '1172341999', '207.46.98.70', '/forum/showthread.php?tid=70&pid=85', 'msnbot/1.0 (+http://search.msn.com/msnbot.htm)', '0', '70', '0')
I would like this page to be replaced with some generic error message say "An error occured. Please try again later ". something like that. Is there any way for doing this?
Thanks