gpt4 book ai didi

php - 未知列 "in field list form "

转载 作者:行者123 更新时间:2023-11-29 21:22:00 25 4
gpt4 key购买 nike

我正在构建一个网络应用程序,并通过 ajax 提交表单,但收到 500 内部错误,我无法弄清楚为什么它显示未知列,因为该字段存在于数据库中。

A Database Error Occurred Error Number: 1054

Unknown column 'integrity' in 'field list' INSERT INTO reportingofficers_part3 (plannedwork, qualityoutput, analytical, exceptionalwork, overall_workoutput, attitudetowork, responsibility, discipline, communication, leadership, teamspirit, timeschedule, inter_personal, personality, overall_personalattributes, Knowledgeofrules, strategic, decision, coordination, subordinates, handlingproblems, inspection, financialpropriety, overall_functionalcompetency, public_relation, training, health, integrity, reporting_officer_penpicture, overall_numerical_grading, id, reporting-officer-id, set) VALUES ('8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '8', '37' , '35', 1) Filename: models/Login_model.php Line Number: 193

以及我的 reportingofficers_part3 表的快照 enter image description here enter image description here

最佳答案

尝试在表名和列名中添加“`”。

INSERT INTO `reportingofficers_part3` (`plannedwork`, `qualityoutput`, `analytical` ...

另外尝试删除列列表并仅在查询中保留值。

关于php - 未知列 "in field list form ",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35679481/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com