2017-04-11 55 views
0

我试图从多个领域添加单场表:如何解决CodeIgniter中“字段列表”中的“未知列描述”?

错误编号:1054

未知列 '描述' 在 '字段列表'

代码:

INSERT INTO `eys_questions` (`question`, `description`, `answer1`, 
    `checkbox1`, `answer2`, `answer3`, `answer4`, `answer5`, `answer6`, 
    `answer7`, `answer8`, `answer9`, `answer10`, `image`) 
    VALUES ('This is the question ', 'This is the description', 'This is the answer', '1', 
'', '', '', '', '', '', '', '', '', '') 

文件名:C:/xampp/htdocs/eys/system/database/DB_driver.php

行号:691

+0

过去的'eys_questions' –

+0

请添加表的结构,在这里你的数据库架构。 此外,我建议在1张表中做,而不是将所有答案保存在一张表中 –

回答

2

它看起来像你的数据库表没有任何列与名description。检查列名称description的拼写。

请张贴与问题的表架构,它将帮助我们检查的问题,并给您妥善解决。

相关问题