note 92046 added to class.pdostatement
| From: | james dot ellis at gmail dot com | Date: | Tue, 07 Jul 2009 01:25:56 +0000 |
| Subject: | note 92046 added to class.pdostatement | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157989@lists.php.net to get a copy of this message | ||
The query string used in a PDOStatement can be found using the (undocumented) property
'queryString'
<?php
//$stm is a prepared PDOStatement
print $stm->queryString
//example result
//SELECT firstname, lastname FROM user where id = :id
?>
----
Server IP: 69.147.83.197
Probable Submitter: 58.6.148.157
----
Manual Page -- http://www.php.net/manual/en/class.pdostatement.php
Edit -- https://master.php.net/note/edit/92046
Del: integrated -- https://master.php.net/note/delete/92046/integrated
Del: useless -- https://master.php.net/note/delete/92046/useless
Del: bad code -- https://master.php.net/note/delete/92046/bad+code
Del: spam -- https://master.php.net/note/delete/92046/spam
Del: non-english -- https://master.php.net/note/delete/92046/non-english
Del: in docs -- https://master.php.net/note/delete/92046/in+docs
Del: other reasons-- https://master.php.net/note/delete/92046
Reject -- https://master.php.net/note/reject/92046
Search -- https://master.php.net/manage/user-notes.php