![]() |
[PHP] MySQL errors - Printable Version +- MyBB Community Forums (https://community.mybb.com) +-- Forum: Community (https://community.mybb.com/forum-12.html) +--- Forum: General Discussion (https://community.mybb.com/forum-11.html) +---- Forum: Web Development and Administration (https://community.mybb.com/forum-133.html) +---- Thread: [PHP] MySQL errors (/thread-111886.html) |
[PHP] MySQL errors - ThatHeart - 2012-01-18 When MySQL has an error, it displays an error page. (look below) But how is this done? Isn't there code executed before the query that causes the error? How does it hide it? What I'm trying to do in PHP is show an error page (hide other executed/echo'd things) on errors, like MyBB has done. Help please ![]() RE: [PHP] MySQL errors - Euan T - 2012-01-18 Here's the error function from the database within MyBB:
That should help you out a little bit ![]() RE: [PHP] MySQL errors - Tom K. - 2012-01-18 Just take a look at /inc/class_error.php ![]() ![]() |