Can you show which items are bound to a PDO statement?
Using PHP, MySQL, PDO
For logging/debug purposes, I would like to be able to log which sql query ran, is it possible to get this value with all the bound results attached to it?
I saw PDOStatement->debugDumpParams
but it do开发者_运维问答es not seem to give the values that are bound.
First of all: the query (unless emulated) does not exist. It never got there as a raw query, hence the safety of it all. The best you can hope for is usually debugDumpParams
精彩评论