Page 1 of 1

MySQLi and prepared statements

Posted: Wed Oct 21, 2009 2:27 pm
by cdw3423
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?

Someone suggested mysqli_debug, but I can't get it to do anything and as far as I know the client was not compiled with debug enabled and I don't have the tools to compile it on my windows test server. On top of that I can't find the documentation on how to use that function.

If I can't find a way to simply print my queries so I can be sure they are what I think they are, then I don't think I will be using the prepared statements.

Chris W