How not to handle errors: phpmyadmin edition

  1. The user does something that fails, due to server-side problems, and you wish to inform the user of this problem so it can be fixed.
  2. You redirect to a page with a URL something like /error.php?message=Something+has+gone+wrong.+Please+fix+it+and+try+again
  3. The user fixes the error on the server, and (since staring at the location bar isn’t a whole lot of fun) simply hits ‘reload’ in their browser.
  4. This causes much wailing and gnashing of teeth, as the problem apparently persists.

I’ll give phpMyAdmin partial credit for at least HTML escaping their errors, but… the stupid, it BURNS!

Leave a Reply

You must be logged in to post a comment.

Site links
Anchor
Wiki
Blog
Services
Domain names
Web hosting
VPS
Dedicated Servers
Co-location
Articles
Dedicated Server Purchasing Guide
Dedicated Server Tutorials
Developer Friendly Hosting
Useful Tools