我使用以下查询来更新数据,它总是使用SQLSERVER
返回1$query = $this->db->update($table,$data,$where);
我想在php端使用它来获得受影响的行数
我在更新模型中的代码是
public function update($table,$data,$where)
{
$query = $this->db->update($table,$data,$where);
$i = $this->db->affected_rows();
return $i;
}
我从
调用模态$this->load->model('UPDATE_model');
echo $check = $this->UPDATE_model->update('toys',$udata3,$where);