Prepared statements and printing Queries

Prepared statements and printing Queries

am 20.10.2009 17:26:04 von Chris W

I know this is more a PHP question but no one on the list at
news.php.net is responding. So I was hoping someone here might know.

If I am using the mysqli extension and prepared statements, after I
execute bind_param, is there a away to print the actual query that gets
sent to the server? I have looked through the PHP docs and can't seem to
find it. Of course I could be blind.

Chris W

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=gcdmg-mysql-2@m.gmane.org

Re: Prepared statements and printing Queries

am 21.10.2009 14:13:50 von Joeri De Backer

Hello,

mysqli_debug will help you, I think.
See: http://php.chinaunix.net/manual/zh/function.mysqli-debug.php

Joeri

On Tue, Oct 20, 2009 at 5:26 PM, Chris W <4rfvgy7@cox.net> wrote:
>
> I know this is more a PHP question but no one on the list at news.php.net=
is responding. =A0So I was hoping someone here might know.
>
> If I am using the mysqli extension and prepared statements, after I execu=
te bind_param, is there a away to print the actual query that gets sent to =
the server? I have looked through the PHP docs and can't seem to find it. =
=A0Of course I could be blind.
>
> Chris W
>
> --
> MySQL General Mailing List
> For list archives: http://lists.mysql.com/mysql
> To unsubscribe: =A0 =A0http://lists.mysql.com/mysql?unsub=3Dfonsken@gmail=
..com
>

--
MySQL General Mailing List
For list archives: http://lists.mysql.com/mysql
To unsubscribe: http://lists.mysql.com/mysql?unsub=3Dgcdmg-mysql-2@m.gmane.o rg