|
-
Sep 29th, 2003, 09:50 AM
#1
Thread Starter
Fanatic Member
Insertion probs with MySQL
I am trying to insert a directory location using mappath.
e.g - Server.Mappath("myfile.aspx") =
C:\inetpub\wwwroot\mysite\myfile.aspx
The problem I am having is that mysql does not accept
the "\" character so the field ends up
with "C:inetpubwwwrootmysitemyfile.aspx".
Can anyone help ?
-
Oct 1st, 2003, 09:41 AM
#2
Addicted Member
I think you need to do a replace of \ by \\
MySQL sees the \ as an escape sequence or something end doesn't store it.
Hope this helps :-)
-
Oct 1st, 2003, 10:05 AM
#3
and don't forget to undo the \\ to \ when extracting it back out.....
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|