incrementConfigEntry('sql_count');
// Debug output
- //* DEBUG: */ print "Query=<pre>".$sql_string."</pre>, affected=<b>".SQL_AFFECTEDROWS()."</b>, numrows=<b>".SQL_NUMROWS($result)."</b><br />\n";
+ //* DEBUG: */ print "Query=<pre>".$sql_string."</pre>, affected=<strong>".SQL_AFFECTEDROWS()."</strong>, numrows=<strong>".SQL_NUMROWS($result)."</strong><br />\n";
if (($CSS != "1") && ($CSS != "-1") && (isBooleanConstantAndTrue('DEBUG_MODE')) && (isBooleanConstantAndTrue('DEBUG_SQL'))) {
//
function SQL_QUERY_ESC($qstring, $data, $file, $line, $run=true, $strip=true) {
global $link;
+ // Init variable
+ $query = "failed";
+
if ($strip) {
$strip = "true";
} else {
$strip = "false";
}
- $query = "";
$eval = "\$query = sprintf(\"".$qstring."\"";
foreach ($data as $var) {
if ((!empty($var)) || ($var === 0)) {
//* DEBUG: */ fclose($fp);
// Run the code
- @eval($eval);
+ eval($eval);
// Was the eval() command fine?
- if (empty($query)) {
+ if ($query == "failed") {
// Something went wrong?
print "eval=".htmlentities($eval)."<pre>";
debug_print_backtrace();