Debugging PDO Prepared Statements

Something that has always bugged me about using prepared statements, is that you can really only get the query sent to the database by catching it in the logs.

Today, a friend asking me if it was possible to get a prepared statement back from PDO with the values placeholders replaced, finally caught me in a moment where I could do something about it.

I wrote a thin PDO wrapper class that will [imperfectly, I'm sure] return the completed query.… More

Twitter

@janl sounds like lint in your dock connector, blow it out with some canned air.

@dshafik [56 minutes ago]

@dshafik lol. Yeah he's definitely a boy kitty, he's crazy hyper!

@elliceyi [57 minutes ago]

@ElliceYi on second thoughts, I concur, it's a him. They're much harder to sex from face alone when they're so young.

@dshafik [2 hours ago]

@ElliceYi are you *sure* it's a him? looks like a her to me. Way. too. kewt.

@dshafik [2 hours ago]

@dshafik LOL at least he stopped. Though I think he still won. Given that you had to carry him back home.

@uberChick [3 hours ago]

Books & Things