function query($sql) { $query = $this->obj_mysqli->query($sql); if ($query) { $this->db_rs = $query; return $query; } else { return false; } }