[snip]
Lets say I have a string: 

"c:\www\test"

I want to insert it into a database, but what ends up getting inserted
is:

c:wwwtest

 I can not get php to double the back slashes no matter what I do!

$string = str_replace("\\", "\\\\", $string);

That is what I want to do, get all single '\' into double '\\'...

Any suggestions?
[/snip]

http://www.php.net/addslashes

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to