
20 Sep
2010
20 Sep
'10
1:21 p.m.
Great this worked and i also used tried the following function escapeSingleQuotes($string){ //escapse single quotes $singQuotePattern = "'"; $singQuoteReplace = "''"; return(stripslashes(eregi_replace($singQuotePattern, $singQuoteReplace, $string))); }
this is just an overkill, i would like to know why you don't trust mysql_real_escape_string($foo) its far much elegant Regards, Erastus Gichuhi +254733725373 @gisho Nairobi Kenya