- changed status to invalid
Double brackets
Issue #26
invalid
Error when '()' into your insert/update value.
in insert / update methods I've changed my code FROM
// used for manage mysql functions like "NOW()" if(strpos($value, '()') == true) $values [] = "$value"; else $values [] = "'".$this->escape($value)."'";
TO
if(substr( trim($value), -2)=='()') $values [] = "$value"; else $values [] = "'".$this->escape($value)."'";
I had javascript code into my $value string, so the insert query was without singlequotes,
Comments (1)
-
repo owner - Log in to comment