Use mysql_real_escape_string [uk.php.net] for safe importing of data into your database. I generally convert apostrophes and double quotes to char entities and let the aforementioned function take care of the rest.
dc
BlackRaven
8:12 am on Jun 30, 2006 (gmt 0)
thanks dreamcatcher, but could you tell me how to properly escape single and double quotes? i keep getting forward slash with my quote after using the mysql_real_escape_string function
Sekka
8:30 am on Jun 30, 2006 (gmt 0)
As dreamcatcher said, use htmlentities () on the string to convert apostrophes and double quotes to HTML special character codes. This will solve your problem. :)