您尝试插入列 : SpeakerOrPresenter
。
两个不同的值:$Speaker
和$Presenter
。
因此,要插入的值比接收数据的列要多。
您可以更改您的查询,使其看起来像这样(其中 SpeakerOrPresenter 列分为 2 个不同的列):
INSERT INTO APPLICANT (fullName, Email, CompanyName, Phone, Fax, GovernmentEmployee, Academic, InternationalAttendee, Speaker, Presenter, FirstTimeAttendee)
VALUES
('$fullName','$Email','$CompanyName','$Telephone','$Fax', $GovernmentEmployee, $Academic, $InternationalAttendee, $Speaker, $Presenter, $FirstTimeAttendee);
或者像这样(将扬声器和演示者这两个值合并为一个):
INSERT INTO APPLICANT (fullName, Email, CompanyName, Phone, Fax, GovernmentEmployee, Academic, InternationalAttendee, SpeakerOrPresenter, FirstTimeAttendee)
VALUES
('$fullName','$Email','$CompanyName','$Telephone','$Fax', $GovernmentEmployee, $Academic, $InternationalAttendee, $SpeakerOrPresenter, $FirstTimeAttendee);