$text=str_replace("\","/","$text");
Im trying to swap any \ to / before they go in to database, but I cannot understand why I get a double slash // using str_replace. Is their away around this?
Is there a reason why you're using str_replace instead of addslashes?
http://www.php.net/addslashes