Jump to content

retrieving data containing '\'


kate_rose

Recommended Posts

Hi I am trying to retrieve data from a mysql database & there are '\' in the data because they correspond to an image location on the computer (i.e.  'myfolder\myimage')

 

I tried replacing all the '\' with '\\' in the db but I am getting the same error which is

 

Warning: Unexpected character in input: '\' (ASCII=92) state=1 in C:\wamp\www\Guana_Plant_Key\test.php on line 28

 

Is it the '\'s in the db causing the problem or do I have some other coding error?

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/109925-retrieving-data-containing/
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.