$SQL .= '`' . $entry . '`=' . $value . ',';
} else {
// Strings need ticks (') around them
- $SQL .= '`' . $entry . "`='" . SQL_ESCAPE($value) . "', ";
+ $SQL .= '`' . $entry . "`='" . SQL_ESCAPE($value) . "',";
}
} else {
// Handle multi-dimensional data
if (is_null($value[$multiDimId])) {
// NULL detected
- $SQL .= '`' . $entry . '`=NULL, ';
+ $SQL .= '`' . $entry . '`=NULL,';
} elseif (('' . bigintval($value[$multiDimId], true, false) . '' == '' . $value[$multiDimId] . '') || ($value[$multiDimId] == 'NOW()') || (substr($value[$multiDimId], 0, 1) == '`')) {
// No need for ticks (')
$SQL .= '`' . $entry . '`=' . $value[$multiDimId] . ',';