I am making a script that allows you to enter messages and store in a db. It works perfect on localhost but when I put it on a server I get this error: [!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 's OK', '', '')' at line 2 [/quote] I gathered it was to do with the fact I have an [b]'[/b] in the message. Is there a way to get rid of it. This is my sql query: [code] mysql_query("INSERT INTO `sim` ( `id` , `name` , `artist` , `category` , `bpm` , `type` , `padkey` , `description` , `file` , `rating` ) VALUES ('$id', '$name', '$artist', '$category', '$bpm', '$stype', '$padkey', '$description', '$file', '')") or die(mysql_error()); [/code] Thanks for your help in advance