|
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: date
Filename: models/category_model.php
Line Number: 23
发生了一个数据库错误
必须使用"set"命令更新记录.
Filename: D:\WampServer\wamp\www\CI_text_2.1.4\system\database\DB_active_rec.php
Line Number: 1272
/********************************************************/
model代码如下:
//提交修改栏目
public function update_cate($cid,$data){
$this->db->update('category', $date, array('cid'=>$cid));
}
控制器里的代码:
$cname = $this->input->post('cname');
$cid = $this->input->post('cid');
$data = array(
'cname' => $cname
);
$data['category'] = $this->cate->update_cate($cid,$data);
success('admin/category/index','修改成功');
各路大神帮帮忙。小弟感激不尽!! |
|