RE: [PHP] back slashes

2005-07-12 Thread yanghshiqi
Yeah, mysql_escape_string() will help you. Best regards, Shiqi Yang -Original Message- From: Richard Lynch [mailto:[EMAIL PROTECTED] Sent: Monday, July 11, 2005 9:42 AM To: Daniel Baughman Cc: php-general@lists.php.net Subject: RE: [PHP] back slashes On Fri, July 8, 2005 12:48 pm

RE: [PHP] back slashes

2005-07-10 Thread Richard Lynch
On Fri, July 8, 2005 12:48 pm, Jay Blanchard said: > [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: PHP3 and earlier: http://php.net/addslashes PHP4 (?) and later: http://php.net/myqsl_escape_string > c:wwwtes

RE: [PHP] back slashes

2005-07-08 Thread Jay Blanchard
[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 '\' i