How do I get rid of annoying slash in frot of an apostrophe, i.e. Moulder's partner Scully is displayed on my page as Moulder\'s partner Scully.
Thanks! Bye
Simple! you can just use the function stripslashes( );
$foo = stripslashes($foo);
http://www.php.net/manual/en/function.stripslashes.php
hope that helps!
If you pass user form input to a php script, make sure you addslashes before saving it to a database. Eg.
$comments = addslashes($comments);
Next time you retrieve the data, it won't have any slashes.
geocities.com/akindele/