Double brackets

Issue #26 invalid
Former user created an issue

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)

  1. Log in to comment