MySQLi and prepared statements

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
cdw3423
Forum Newbie
Posts: 3
Joined: Tue Oct 20, 2009 10:50 pm

MySQLi and prepared statements

Post 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
Post Reply