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
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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.