All Posts By

Paul Pierpoint

How not to handle errors: phpmyadmin edition

By | Technical | No Comments

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. You redirect to a page with a URL something like /error.php?message=Something+has+gone+wrong.+Please+fix+it+and+try+again 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. 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!

Read More