MySQL access

Sharky Forums


Results 1 to 2 of 2

Thread: MySQL access

  1. #1
    Expensive Sushi
    Join Date
    Jul 2001
    Location
    Ireland
    Posts
    7

    Post MySQL access

    I am trying to get into my dads MySQL DB to update his site while he is on holidays.this is the only thing he asks me to do and i cant )

    <%
    name=request.querystring("Name")
    mail=request.querystring("Mailid")

    cat=Request.querystring("ret_max")
    Response.Write(cat)
    dim con,rs,db
    ConnectionString="DRIVER=org.gjt.mm.mysql.Driver;URL={****:m ysql://mysql.gocampingireland.com/********};uid=********;pwd=********;"
    set con=server.createobject("adodb.connection")
    con.open(ConnectionString)
    set rs=server.createobject("adodb.recordset")
    'con.connectionstring="Driver={Microsoft Access Driver (*.mdb)};DBQ="&Server.MapPath("/data/camping.mdb")
    'con.open
    'con.execute("insert into subscription(name,mail,category) values('"&name&"','"&mail&"','"&cat&"')")
    con.execute("insert into subscription(name,mail,category) values('"&name&"','"&mail&"','"&cat&"')")
    con.close
    set con=nothing
    %>

    <HTML>
    <HEAD>
    <META NAME="GENERATOR" Content="Microsoft Visual Studio 6.0">
    </HEAD>
    <BODY>
    <center><h2><font color="crimson"><b>Your Mail Id Has Been Added</b></font></h2></center>
    <P> </P>

    </BODY>
    </HTML>

    Right i wanna now how i access it to edit it.
    the above is his email DB.
    *=the bits only i should know


    ------------------
    Ashley Lyn Cafagna

    EON Help (i hope)

    [This message has been edited by chern0byl (edited September 18, 2001).]

  2. #2
    Expensive Sushi
    Join Date
    Jul 2001
    Location
    Ireland
    Posts
    7

    Post

    right guys i got the mutha sorted out.
    basically im using XP and when i tried to add "MySQL" in data sources "adminsitrive tools" but the driver was not there and it took me ages to find.

    XPODBC wrking MySQL driver


    and its all good now.

    ------------------
    Ashley Lyn Cafagna

    EON Help (i hope)

    [This message has been edited by chern0byl (edited September 18, 2001).]

Posting Permissions

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