木下 敏夫
kino****@tktoo*****
2008年 7月 11日 (金) 11:19:39 JST
木下です。
> $query = $this->db->get('customer');
> $row = $query->row();
も必要無さそうだから
function edit($cu_id = '')
{
$cu_id = (int) $cu_id;
$edit = (int) $this->input->post('edit');
$this->db->where('cu_id', $cu_id);
if ($edit == 1)
{
$data['cu_name'] = $this->input->post('cu_name');
$data['cu_kana'] = $this->input->post('cu_kana');
$data['cu_tel'] = $this->input->post('cu_tel');
$data['cu_fax'] = $this->input->post('cu_fax');
$data['cu_mail'] = $this->input->post('cu_mail');
$data['biko'] = $this->input->post('biko');
$data['datetime'] = $this->input->post('datetime');
$this->db->update('customer', $data, $cu_id);
$this->load->view('customer_edit_finished');
}
else
{
$this->load->view('customer_edit_confirm', $data);
}
}
ん?
$this->load->view('customer_edit_confirm', $data);
で使ってる $dataはどこからくるんだ?
--
木下敏夫
mailto:kino****@tktoo*****
http://www.tktools.jp/
http://okusama-shop.com/
http://www.oidc.jp/bmb/index.php?topic=-m-D14
-------------------------------------------------------------------------
ビジネスマッチングブログ・キックオフセミナーにパネリストとして参加します。
http://www.oidc.jp/bmb/article.php/20080207143305526
-------------------------------------------------------------------------