row affected in codeigniter code example Example: codeigniter check affected rows return $this->db->affected_rows() > 0;