|
发表于 2011-4-20 14:30:22
|
显示全部楼层
PHP复制代码
$name = $this->input->post('name');
$type = $this->input->post('type');
$content = $this->input->post('content');
foreach($name as $key => $val)
{
$data = array(
'name' => $val,
'type' => $type[$key],
'content' = $content[$key]
);
$this->db->insert('table', $data);
}
复制代码 |
|