有我的代碼:如何插入多維數組在笨數據庫
Array
(
[head_family] => 1234
[house_name] => abc
[house_no] => 12
[relationship] => son
[family_ms_id] => KERTVMPMJF318
[member_ms_id] => KERTVMPMJM318
)
Array
(
[head_family] => varun
[house_name] => nila
[house_no] => 12
[relationship] => son
[family_ms_id] => KERTVMPMJF318
[member_ms_id] => KERTVMPMJM318
)
控制器:
$this->Enrollment_model->add_member($appended);
型號:
function add_member($appended) {
$this->db->insert('members', $appended);
return $this->db->insert_id();
}
檢查http://stackoverflow.com/questions/17875706/how-to-create-codeigniter-batch-insert-array – Saty
'$ this-> db-> insert_batch' – splash58
請讓我們知道你想要做什麼... –