【发布时间】:2017-04-18 11:21:53
【问题描述】:
这里我有一个数组,在这个数组中我还有一个数组名studentAbsentId,现在我想在数据库中插入studentAbsentId,就像这里studentAbsentId 2 和studentAbsentId 2 不存在所以我需要插入两行
我更新的代码print_r($params);
Array
(
[studentAbsentId] => Array
(
[0] => 2
[1] => 3
)
[schoolId] => 2
[classId] => 1
[sectionId] => 1
[studentAbsentDate] => 2017-04-18
[reg_date] => 2017-04-18 05:20:17
[created_by] => 1
)
现在我只想带studentAbsentId,怎么办?
预期结果
2
3
【问题讨论】:
-
那么当你运行这段代码时发生了什么?你看到任何错误吗?描述并提及您的问题
-
请检查我更新的代码
标签: php json codeigniter model