Get the Actual SQL of a Prepared Statement with mysqli?
18:57 17 Sep 2009

Is there any way to get the actual SQL that is the result of preparing a statement when using the mysqli extension?

My problem: I am using prepared statements. In all cases, they SHOULD update a record. I am not catching any errors. However, when I check for affected rows, there are none. So, I want to see the actual SQL that would be executed as a result of the prepare statement.

Is there any way to do this? I've check the mysqli reference docs, but they don't seem to have anything.

php mysqli prepared-statement