求助
update 语句没有更新成功,为什么还返回true,求教! 贴下你的表 和 code 返回TRUE?是返回影响行数吧。 $this->db->where('id',$id);$this->db->where('password',$old);
$ret = $this->db->update('ecs_user',array('passdword'=>$new));
return $ret; update 后面紧跟着
$this->db->affected_rows();
你试试 恩,谢了
页:
[1]