Problem with mysql and ASP

Ask a Question related to ASP Database, Design and Development.

  1. #1

    Default Re: Problem with mysql and ASP

    You probably need to change the date format you are using. #date# is used in
    MS Access but I don't think it is valid for MySQL. Check the MySQL docs.

    --
    Mark Schupp
    --
    Head of Development
    Integrity eLearning
    Online Learning Solutions Provider
    [email]mschupp@ielearning.com[/email]
    [url]http://www.ielearning.com[/url]
    714.637.9480 x17


    "Passero" <yanongena@pandora.be> wrote in message
    news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    > When i want to execute a insert into statement i get following error:
    >
    > Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    > [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de gebruikte
    > syntax bij '' in regel 1
    >
    > I translate it: there is an error in the used syntax by '' in rule 1
    >
    > The code i use is: conn.execute query
    >
    > I suppose that they mean that my querystring is empty? However when i
    write
    > response.write query i get the following:
    >
    > insert into gebruikers values
    >
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    > ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)
    >
    >
    >
    > I guess that it is correct? So why won't it work?
    >
    >
    >

    Mark Schupp Guest

  2. Similar Questions and Discussions

    1. Need Help, problem with OSX, MySQL, etc.
      Hi, I'm working on an eMac with OSX 10.3.9 and all updates. It already had Apache and Sendmail and I installed MySQL and phpMyAdmin. Apache sees...
    2. ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)
      When i try to start my mysql server, i get this error ERROR 2002: Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock'...
    3. mySQL CF5 TCP/IP Problem
      Hi folks, For a wee while our development server (CF5, mySQL, Win NT) has occasionally stopped connecting to the mySQL database, reporting "Can't...
    4. Problem getting PHP to recognize MySQL, Using PHP 4.3.7 and MySQL 4.0.20
      Hi there! I have both PHP 4.0( RPM) installed and MySQL 4.0.20 installed with the mysqld daemon up and running. But when I look at the output of...
    5. MySQL/PHP problem. getting field names from MySQL and using it asPHP variables
      Is this possible? I'd like to just get the field names from my database and use it as variables to save me from making errors as to where i should...
  3. #2

    Default Re: Problem with mysql and ASP

    You probably need to change the date format you are using. #date# is used in
    MS Access but I don't think it is valid for MySQL. Check the MySQL docs.

    --
    Mark Schupp
    --
    Head of Development
    Integrity eLearning
    Online Learning Solutions Provider
    [email]mschupp@ielearning.com[/email]
    [url]http://www.ielearning.com[/url]
    714.637.9480 x17


    "Passero" <yanongena@pandora.be> wrote in message
    news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    > When i want to execute a insert into statement i get following error:
    >
    > Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    > [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de gebruikte
    > syntax bij '' in regel 1
    >
    > I translate it: there is an error in the used syntax by '' in rule 1
    >
    > The code i use is: conn.execute query
    >
    > I suppose that they mean that my querystring is empty? However when i
    write
    > response.write query i get the following:
    >
    > insert into gebruikers values
    >
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    > ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)
    >
    >
    >
    > I guess that it is correct? So why won't it work?
    >
    >
    >

    Mark Schupp Guest

  4. #3

    Default Re: Problem with mysql and ASP


    "Mark Schupp" <mschupp@ielearning.com> schreef in bericht
    news:eAx#2o8cDHA.2368@TK2MSFTNGP09.phx.gbl...
    > You probably need to change the date format you are using. #date# is used
    in
    > MS Access but I don't think it is valid for MySQL. Check the MySQL docs.
    >
    I've checked on [url]www.mysql.com[/url] and this is what they said:

    Observe that MySQL expects dates in 'YYYY-MM-DD' format; this may be
    different from what you are used to.

    Knowing that, i've changed my code an indead it works. I used to work with a
    MDB with my asp pages but now i've changed.
    Thanks a lot.
    > --
    > Mark Schupp
    > --
    > Head of Development
    > Integrity eLearning
    > Online Learning Solutions Provider
    > [email]mschupp@ielearning.com[/email]
    > [url]http://www.ielearning.com[/url]
    > 714.637.9480 x17
    >
    >
    > "Passero" <yanongena@pandora.be> wrote in message
    > news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    > > When i want to execute a insert into statement i get following error:
    > >
    > > Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    > > [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de
    gebruikte
    > > syntax bij '' in regel 1
    > >
    > > I translate it: there is an error in the used syntax by '' in rule 1
    > >
    > > The code i use is: conn.execute query
    > >
    > > I suppose that they mean that my querystring is empty? However when i
    > write
    > > response.write query i get the following:
    > >
    > > insert into gebruikers values
    > >
    >
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    > >
    ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)
    > >
    > >
    > >
    > > I guess that it is correct? So why won't it work?
    > >
    > >
    > >
    >
    >

    Passero Guest

  5. #4

    Default Re: Problem with mysql and ASP


    "Mark Schupp" <mschupp@ielearning.com> schreef in bericht
    news:eAx#2o8cDHA.2368@TK2MSFTNGP09.phx.gbl...
    > You probably need to change the date format you are using. #date# is used
    in
    > MS Access but I don't think it is valid for MySQL. Check the MySQL docs.
    >
    I've checked on [url]www.mysql.com[/url] and this is what they said:

    Observe that MySQL expects dates in 'YYYY-MM-DD' format; this may be
    different from what you are used to.

    Knowing that, i've changed my code an indead it works. I used to work with a
    MDB with my asp pages but now i've changed.
    Thanks a lot.
    > --
    > Mark Schupp
    > --
    > Head of Development
    > Integrity eLearning
    > Online Learning Solutions Provider
    > [email]mschupp@ielearning.com[/email]
    > [url]http://www.ielearning.com[/url]
    > 714.637.9480 x17
    >
    >
    > "Passero" <yanongena@pandora.be> wrote in message
    > news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    > > When i want to execute a insert into statement i get following error:
    > >
    > > Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    > > [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de
    gebruikte
    > > syntax bij '' in regel 1
    > >
    > > I translate it: there is an error in the used syntax by '' in rule 1
    > >
    > > The code i use is: conn.execute query
    > >
    > > I suppose that they mean that my querystring is empty? However when i
    > write
    > > response.write query i get the following:
    > >
    > > insert into gebruikers values
    > >
    >
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    > >
    ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)
    > >
    > >
    > >
    > > I guess that it is correct? So why won't it work?
    > >
    > >
    > >
    >
    >

    Passero Guest

  6. #5

    Default Re: Problem with mysql and ASP

    Hi:

    #string# notation stands for date? But I think they work in Microsoft Access driver.

    I suppose you should use YYYY-MM-DD notation for MySQL.

    [url]http://php.weblogs.com/[/url] gives API for MySQL. You may like to check it out too.

    --
    ================================
    Deepak Kumar Vasudevan
    CS Software Solutions

    Phones: +91-44-2819-1336 thru 38
    91-98400-26014
    [url]www.cssolutionsinc.com[/url]
    ================================
    "Passero" <yanongena@pandora.be> wrote in message news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    When i want to execute a insert into statement i get following error:

    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de gebruikte
    syntax bij '' in regel 1

    I translate it: there is an error in the used syntax by '' in rule 1

    The code i use is: conn.execute query

    I suppose that they mean that my querystring is empty? However when i write
    response.write query i get the following:

    insert into gebruikers values
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)



    I guess that it is correct? So why won't it work?



    Deepak Kumar Vasudevan Guest

  7. #6

    Default Re: Problem with mysql and ASP

    Hi:

    #string# notation stands for date? But I think they work in Microsoft Access driver.

    I suppose you should use YYYY-MM-DD notation for MySQL.

    [url]http://php.weblogs.com/[/url] gives API for MySQL. You may like to check it out too.

    --
    ================================
    Deepak Kumar Vasudevan
    CS Software Solutions

    Phones: +91-44-2819-1336 thru 38
    91-98400-26014
    [url]www.cssolutionsinc.com[/url]
    ================================
    "Passero" <yanongena@pandora.be> wrote in message news:R926b.2390$tN3.140426@phobos.telenet-ops.be...
    When i want to execute a insert into statement i get following error:

    Microsoft OLE DB Provider for ODBC Drivers error '80040e14'
    [MySQL][ODBC 3.51 Driver][mysqld-4.0.14-nt]Er is iets fout in de gebruikte
    syntax bij '' in regel 1

    I translate it: there is an error in the used syntax by '' in rule 1

    The code i use is: conn.execute query

    I suppose that they mean that my querystring is empty? However when i write
    response.write query i get the following:

    insert into gebruikers values
    ('name','name2','userID','pasword',#01\10\1982#,'m ail@mail.com','0','M','cou
    ntry','city','student','url','icq','msn','hobby',' info','more',#5\1\2003#)



    I guess that it is correct? So why won't it work?



    Deepak Kumar Vasudevan Guest

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139