View Single Post
Old 09-19-2007, 08:49 PM   #7 (permalink)
Haris
The Frequenter
Prolific Welcomer Upcoming Programmer 
 
Join Date: Sep 2007
Posts: 360
Thanks: 24
Haris is on a distinguished road
Default

It was due to my queries automatically escaping. How can I avoid this error? :S

I know I can remove the escaping and do it manually but that's not the safest option?

PHP Code:
        public function execute($szSQL){
            
$szSQL mysql_real_escape_string($szSQL);
            
$szResult mysql_query($szSQL) or die(mysql_error());
            return 
$szResult;
        } 
Haris is offline  
Reply With Quote