title: Handling DB error in PHP
body: <p>Hey everyone!<br>
  I'm building a webapp in PHP that uses a MySql DB. What I want to do is for example when someone tries to access to a page, but the DB throws an error, to display a HTML (or redirect) page with the HTTP code 500. Something like the "fail whale" in Twitter.
  Is that possible?</p>