Having error with select statement

Discussion in 'PHP' started by minhazikram, Apr 21, 2012.

  1. #1
    i am trying to retrieve a data from database by comparing the email id of user and i am getting this error every time the email matching query is executed

    "You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '@nsueecs.edu' at line 1"
     
    minhazikram, Apr 21, 2012 IP
  2. e-abi

    e-abi Member

    Messages:
    122
    Likes Received:
    1
    Best Answers:
    3
    Trophy Points:
    38
    #2
    What is the exact query you are using.

    maybe your email is not surrounded with single quotation marks.

    should be correct syntaks.
     
    e-abi, Apr 21, 2012 IP