/ Published in: PHP
Dumps whole query so developer can see where is error. However it's potential security issue, exposing SQL commands to attacker. (Recommended to use only during development, replace message code with some custom error text)
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$sql="select something from something_else"; if (!$res_id) { $message .= 'Whole query: ' . $sql; }