Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 26

Thread: Incorrect syntax error

  1. #11
    Join Date
    Jan 2005
    Posts
    9
    Rep Power
    0

    Default Re: Incorrect syntax error

    Well one was the hosting company we have now is 2coolweb (dot) com. and now we are trying to move to 1and1 (dot) com.

    I just imported the BAK file to 1and1. The Newpak (dot) com site is working fine. I really don't understand why we are having this problem. This is a StoreFront shopping cart we are running.

    Why am I having all these problem?

    Thanks for all your help,

    omansur

  2. #12
    Join Date
    Jan 2005
    Posts
    9
    Rep Power
    0

    Default Re: Incorrect syntax error

    I went into the the sql DB to check if the order was writen. None of the orders are being writen to the DB. I won't even know where to begin looking.

    O

  3. #13
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Incorrect syntax error

    Did you fix the last error you got? Did you also remember to remove the code I asked you to add?
    Code:
    Response.Write sql
    Response.End
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  4. #14
    Join Date
    Jan 2005
    Posts
    9
    Rep Power
    0

    Default Re: Incorrect syntax error

    Yes the last one did work. Not more errors show up in the browser, but the orders don't post to the database.

    Yes I did remove the code you asked me to insert.

    Would you be will to look at my code?

    O

  5. #15
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Incorrect syntax error

    Sure. I'll take a look at it.

    Can email me a link to the site so we can test it.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  6. #16
    Join Date
    Jan 2005
    Posts
    9
    Rep Power
    0

    Default Re: Incorrect syntax error

    Can you please send me an email with the info you need... I think you have the address.

    omansur

  7. #17
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Incorrect syntax error

    I sent you an email. We can work it out there.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  8. #18
    Join Date
    Sep 2003
    Posts
    603
    Rep Power
    0

    Default Re: Incorrect syntax error

    I dont see anything wrong with the syntax of your SQL statement. try putting angle brackets around your column name to explicitly tell the parser to treat them as column names and not reserved words.

    if you have enterprise manager and/or query analyzer, try connecting to the Instance of SQL server and run your query. query analyzer should give you a better error message. also try checking your connection string.
    easiparcel.com Shop online and ship to Jamaica

  9. #19
    Join Date
    Apr 2003
    Posts
    13,270
    Rep Power
    35

    Default Re: Incorrect syntax error

    He got that fixed CGP. It just needed quotes around the field because it was a text field.

    The problem he is having is the info is not being inserted into the database.
    "The best software is the one that fits your needs." - A_A

    Virus free since: date unknown
    Anti-virus free since: August 2008

  10. #20
    Join Date
    Jun 2003
    Posts
    159
    Rep Power
    0

    Default Re: Incorrect syntax error

    Quote Originally Posted by Arch_Angel
    He got that fixed CGP. It just needed quotes around the field because it was a text field.

    The problem he is having is the info is not being inserted into the database.

    where is the "insert" or "update" sql statement?
    I have within me the blood of kings....take me to the leader of your world.

Posting Permissions

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