Jump to content

having trouble with "\"


uzairrahim

Recommended Posts

Hi, I am new to PHP and MySQL, though i have a good command on ActionScript 2.0

I am working on an application that is based on Flash, PHP and MySQL.

 

From the Flash file i m sending a string variable to PHP to store in the database, the string is a path to a directory on a local network

"\\aus-fs-1\development\content..."

 

but when i look into the database the string is stored as "\aus-fs-1developmentcontent...", missing all the  slashes, except for the first one.

 

Could anyone tell me how to deal with this problem.

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/75258-having-trouble-with/
Share on other sites

with the variable you're using, are you running the data through stripslashes at all before putting it in the DB?

if there are no "escaping" slashes in the string (ie, the result of running the data through addslashes/mysql_real_escape_string), then it'll take out others with undesirable results.

Link to comment
https://forums.phpfreaks.com/topic/75258-having-trouble-with/#findComment-380655
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.