How can I convert this query to active record?
\"UPDATE table_user SET email = \'$email\', last_ip = \'$last_ip\' where username = \'$username\' and status =
$wherecond = "( ( ( username ='" . $username . "' OR status='" . $status . "') AND (id='" . $id . "') ) )"; $this->db->where($wherecond);
If you want to add AND and OR conditions at a time. this will work.