0
這裏我有一個陣列,該陣列中的我多了一個數組名studentAbsentId
,現在我想插入studentAbsentId
數據庫在數據庫中插入,喜歡這裏studentAbsentId
2和studentAbsentId
2是缺席,所以我需要插入兩行如何讓數組的值如何使用codeiniter
我更新的代碼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
到底發生了什麼,當你運行該代碼?你看到任何錯誤?描述並提及您的問題 –
請檢查我的更新代碼 –