MySQL ERROR 'Unknown Column in field list'

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    MySQL ERROR 'Unknown Column in field list'

    Hey guys please help me once again i have a problem with MySQL i'm trying to insert data but it's returning this error message
    #1054 - Unknown column 's3nzo' in 'field list'
    Here's MySQL query

    PHP Code:
    INSERT INTO users (idnickfirstnamelastnameagecountrycity)
    VALUES (NULLs3nzoAlexagoodle12USANY
    I already tried this
    Solution it didn't work
    libra.wen.ru

    #2
    Did u tried single quots for char values? Thats required.
    Last edited by Redisblood; 23.07.11, 07:42.

    Comment


      #3
      Thank you guys, single quotes worked
      libra.wen.ru

      Comment


        #4
        Also, be aware which quotes you use: Backquotes ` are used for table and field names ONLY.
        Single quotes, as brokenheart uses in his example, are meant for strings, and thus Brokenheart uses quotes right in his example.

        Here is how I came through with no errors:

        INSERT INTO `supplier`
        SET `address`='Kong Georgs Vej 31, 2000 Frederiksberg', `company`='Pedersen og Christoffersen El ApS', `contact_fname`='Søren', `contact_lname`='Christoffersen', `contact_phone`='38776655', `contact_phone_is_mobile`='0', `fax`='38776650', `mail`='', `main_phone`='38776655', `preferred`='fax', `trade`='f', `user`='USER', `user_group`='TEST'

        Comment

        Working...
        X