hi there..
i think addslashes should work..
correct me if im wrong,
but you are trying to add data such as mc'guyver
to your mssql.. right??
in case it's a name..
you should do it like this...
$name = addslashes($name);
$query = "INSERT INTO your_table (your_data) VALUES ('$name')";
$result = mysql_db_query('your_database', $query) or die(mysql_error());
from my small time experience,
anything with a " ' " in the name will be entered with a slash
example if $name = "mc'guyver";
then in you db will look like mc/'guyver
hope that helps..
p/s: ko budak kay el ker??