UBB.Dev
Posted By: Astaran Suppress database errors - 07/21/2003 12:03 AM
ubb.threads already handels some mysql errors and displays "database error only visible to admins" on the screen.
But this still clutters up the screen and newbies get really confused what's going on.
Depending on your PHP configuration, warning messages are printed on the screen also.

I modified the mysql class to suppress all error messages. Instead a template is displayed that informs the user what had happend (depending on the mysql error).

It has specified error messages for:

Couldn't connect to db-server (if your mysq server is down)
Too many connections
Unable to do query
and a standard message for all other errors


If someone is interested in that mod, i'll document it and release it here.
My mod only changes mysql.inc.php and adds one template and a corresponding language file.
Posted By: omegatron Re: Suppress database errors - 07/21/2003 1:00 AM
Sounds cool my friend.
© UBB.Developers