[eluser]Yash[/eluser]
Code:
$data = array(
'Activate' => 1,
'CheckCode' => ""
);
$this->db->where(array('MemberID'=> $id,'CheckCode'=> $act_code));
$str1 =$this->db->update('users', $data);
this works perfectly.
but problem is each time $str1 gives 1 whether it updates or not .
My question how to do this also know whether query is successful or not.