PDO, fetch prepared statement

PDO, fetch prepared statement

am 24.11.2006 13:57:58 von Rudi Worm

Hi

Using PDO to prepare a query, bind som values to it (using ? Placeholders)
and then executing it - how do i get the actual query afterwards? With the
correct inserted values.

It is needed logging purposes.

I haven't been able to find any method or property that gives me this
information.

Thanks.

--
Best Regards

Rudi W.
Systemudvikler, ZCE
WorldWeb Interactive ApS

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: PDO, fetch prepared statement

am 27.11.2006 00:41:14 von Chris

Rudi Worm wrote:
> Hi
>
> Using PDO to prepare a query, bind som values to it (using ? Placeholders)
> and then executing it - how do i get the actual query afterwards? With the
> correct inserted values.

Use your system database logs. PDO doesn't give you the opportunity to
grab them.

--
Postgresql & php tutorials
http://www.designmagick.com/

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php