/ 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
$sql="select something from something_else"; if (!$res_id) { $message .= 'Whole query: ' . $sql; }
You need to login to post a comment.
