I have this query and if it returns successful, I want another function to process, if not, do not process that function.
Here is the code for running the query
if the value is 0 then it wasn't successful, but if 1 then successful.
$this->db->affected_rows();