0

我已经浏览了所有相关的答案,但没有得到我想要的确切答案。

我必须在点击表格中的提交按钮时插入数据。

问题 1:numberof_bouquets_fta字段丢失:我第一次提交表单时,表numberof_bouquets_fta中确实缺少字段,所以我更改了表并添加了字段。 所以这里的问题一解决了。

问题 2:numberof_bouquets_fta字段实际上存在,但仍显示 1054 错误:我已删除该列并添加了两次,但我仍然面临此错误。另外,我尝试直接从 PHPMyAdmin 插入相同的查询,它工作得很好。

服务器端或 CI 问题是否存在任何缓存问题?我不知道我在这里做错了什么,因为相同的代码在开发环境中运行良好。

以下是引发错误的查询:

INSERT INTO `tblcounteragreements` 
(`reason_type`, `remarks`,
`original_agreementid`, `agreement_stage`,
`agreementno`, `total_exicute`, `rio_base_usertype`, 
`dpo_id`, `rio_id`, `rio_announcement_date`, `rio_effective_date`, `rio_valid_from`,
`rio_valid_to`, `agreement_date`, 
`valid_from`, `valid_to`, `target_market`, `number_of_paychanels`,
`numberof_fta_chanels`, `numberof_bouquets`,
`numberof_bouquets_fta`, `additional_remarks`,
`confirmation_given`, `agreement_with_usertype`, `brodcaster_id`, 
`broadcaster_name`, `dpo_name`,
`submitted_by_usertype`, `submitted_by`,
`agreement_type`, `lco_id`,
`createdby`, `createdon`, 
`createdbyip`, `modifiedby`,
`modifiedon`, `modifiedbyip`, `status`)
VALUES ('Discrepancy in Channels/Bouquets', 'testing',
'2969', '2', 'DI0978/Agr/6juneagr1',
'12', 'Broadcaster', '1333', '107', 
'2020-06-01', '2020-07-01',
'2020-06-01', '2020-06-30', '2020-06-01',
'2020-06-01', '2020-06-30', 'sds', '2', '3', '1', '1', 
'', 'Y', '3', '1332', 'TRAI Farheen RA',
'TRAI souvik', '2', '1332', 'RIO', NULL,
'1509', '2020-06-05 22:59:32', 
'106.215.74.44', '', '', '', 1);

如果有人知道解决方案,请提供帮助。

4

0 回答 0