Is it possible to get the actual sql that is being used to query or
update the database?

$sth = $dbh->prepare ("update table set field=?, field2=? where id=?);
mysqli_bind_param ($sth, 'ssi', 'text1', 'text2', 10);

Something like $sth->sql? Or $dbh->sql?

I want to see "update table set field='text1', field2='text2' where id=10;

Thanks in advance,

PHP General Mailing List (
To unsubscribe, visit:

Reply via email to