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

Dear #verizon, make me an offer to ditch #Brighthouse and I'm yours if you install tomorrow. <= $135/mo for HD, DVR and 20/2mbit Internet.

@dshafik [1 hour ago]

@dshafik cool! Thanks for the tip

@harrieverveer [3 hours ago]

Just found the #netbeans Cmd+P (Ctrl+P on PC) shortcut. It shows function params in a tooltip when between parenthesis: http://bit.ly/bPd34l

@dshafik [3 hours ago]

@mgirouard what? no. it's terrible to give out verbally.

@dshafik [3 hours ago]

Should I renew crtx.org? I don't have any need for it (right now), but I kinda like it... never used for email either.

@dshafik [4 hours ago]

Books & Things