
 - - 2010-05-22 11:58:59
 
Hi,
first of all: Great wrapper class you've developed here!
When I use your class in PHP 5.3 I get two E_DEPRECATED warnings regarding ereg calls.
I suggest you replace the two lines 1087 and 1097 with
"if (strpos(strtolower($sql),"insert")===0) {"
and
"} else if(strpos(strtolower($sql),"select")===0) {".
Instead of using regular expressions here I think strpos is better, as it is faster (no need for compilation of the regular expression, see http://lzone.de/articles/php-string-search.htm ).