PDA

View Full Version : Custom Database Error message?


Borgs8472
03-07-2006, 12:21 AM
If like me you've run forums for a while now, you'll be used to the database error message.

(wish I had one to hand - but you know what I mean)

Now I accept it as a given that from time to time users will see a database error, and sending me an email is not usually much help since it's usally all errors or no errors.

How could I customise the PHP database error in the style of my site?

Obviously it'd involve a simple frame with MANUAL CSS (rather than stored in the DB ;) ), the site logo and a custom phrase about what users should do if they see this message. (e.g my email and MSN details, or even a backup forum)

But fundementally, how can I make a custom PHP error message?

Ta!

Adrian Schneider
03-10-2006, 04:19 AM
The vBulletin database error page is just an HTML doc that is included.

includes/database_error_page.html

As far as PHP errors go, you have to create your own error handler. I think the database thing was all you wanted though.