php - prepared Query strings -
this question has answer here:
- how echo mysqli prepared statement? 4 answers
is there function return prepared query string after processing parameters.
$stmt = $conn->prepare("select full_name user_info user_id = ?"); $stmt->bind_param("s", $user_id);
can see final query string execute?
if driver capable of using prepared statements, if doesn't require emulation, final query executed is prepared statement.
if want find out executed, need turn on general query log on server. can very, noisy , fill disk on busy server.
Comments
Post a Comment