$test=Array
(
[0] => Array
(
[flag] =>
[title] =>
[lan_id] => 1
[goods_sn] =>
[price] => 0.00
[startsales] => 1970/01/01 08:01
[thumb] =>
[weight] => 0.00
[numbers] => 0
[warnumbers] => 0
[status] => 1
[shipping] => 0
[description] =>
[body] =>
[a_id] => 3
)
[1] => Array
(
[flag] =>
[title] =>
[lan_id] => 2
[goods_sn] =>
[price] => 0.00
[startsales] => 1970/01/01 08:01
[thumb] =>
[weight] => 0.00
[numbers] => 0
[warnumbers] => 0
[status] =>
[shipping] => 0
[description] =>
[body] =>
[a_id] => 3
)
)数据源是上面的。错误出现在status上,status为checkbox如果不选择则可以正常的用addAll插入(多条)数据,勾选上则出现错误,Insert value list does not match column list: 1136 Column count doesn't match value count at row 3
说是字段多了。
我把checkbox更换成text有默认value值,再执行则正常。
谁遇到过这种蛋疼的问题。纠结。。。。
最佳答案