Results 1 to 3 of 3

Thread: Insertion probs with MySQL

  1. #1

    Thread Starter
    Fanatic Member venerable bede's Avatar
    Join Date
    Sep 2002
    Location
    The mystic land of Geordies
    Posts
    1,018

    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 ?

    Parksie

  2. #2
    Addicted Member
    Join Date
    Jun 2002
    Location
    Brugge, Belgium
    Posts
    208
    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 :-)

  3. #3
    PowerPoster techgnome's Avatar
    Join Date
    May 2002
    Posts
    34,687
    and don't forget to undo the \\ to \ when extracting it back out.....
    * I don't respond to private (PM) requests for help. It's not conducive to the general learning of others.*
    * I also don't respond to friend requests. Save a few bits and don't bother. I'll just end up rejecting anyways.*
    * How to get EFFECTIVE help: The Hitchhiker's Guide to Getting Help at VBF - Removing eels from your hovercraft *
    * How to Use Parameters * Create Disconnected ADO Recordset Clones * Set your VB6 ActiveX Compatibility * Get rid of those pesky VB Line Numbers * I swear I saved my data, where'd it run off to??? *

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width