I have a string, named $directory, which contains "C:\somedir\somesubdir\somefile".
I can do an echo $directory, and the string is outputted with the slashes in.
When I insert it into an MySQL table, the string loses the slash marks.
So "C:\somedir\somesubdir\somefile"
becomes "C:somedirsomesubdirsomefile".
my syntax is this:
$sql = "INSERT INTO mp3 (filename,directory) VALUES ('$filename','$directory')";
Anyone know what I need to do?
Thanks for any help