Davey Shafik's Blog: Debugging PDO Prepared Statements

Courtesy PHPDeveloper.org  Wed, 05/20/2009 - 08:35

In a recent post to his blog, Davey Shafik looks at solving something that has "always bugged him about using prepared statements" - getting the actual query it used back out.

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...


 

More related items

Davey Shafik's Blog: The Blowfish Debacle
Davey Shafik has a recent post to his blog about what he calls "The Blowfish Debacle" - the issues that came up with the PHP 5.3.7 release to upgrade the crypt_blowfish version that resulted...

My Book is Published: PHP Master - Lorna Mitchell
I am truly delighted to announce that "my" book is published. Technically it's really "our" book since I had the pleasure of co-authoring with friends and PHP rockstars Davey Shafik and Matt...

PHP Master Published by SitePoint - Matthew Turland
I’m very happy to announce that I’ve had a second book published: “PHP Master: Writing Cutting-Edge Code.” This time, I had the honor and pleasure of co-authoring the content with my...


 

Post new comment

The content of this field is kept private and will not be shown publicly.
computer-internet.marc8.com