Mysql errors are among the most common ones you see during development, and I am searching for a pleasant and informative way to output them.
phpMyAdmin apparently has a decent pretty-printer for mySQL queries:
However, it prints errors as simple text:
Whereas in the latter example, the text after for the right syntax to use near
could have been highlighted in the query. Like this:
Even though it's a short query, you immediately see there's a surplus comma right before the text. Doing so in much larger queries could increase readability dramatically, I'm surprised numerous searches on the subject came up with nothing.
Question in one sentence: Do you use or know of any such PHP class that displays pretty mysql errors for debugging purposes?