Update Numof Rows Codeigniter

[Solved] Update Numof Rows Codeigniter | Php - Code Explorer | yomemimo.com
Question : update numof rows codeigniter

Answered by : zealous-zebra-bo42okls5wkv

if (!$country_id) { $this->db->insert('country_master', $insert_array); $id = $this->db->insert_id();
} else { $this->db->update('country_master', $insert_array, array("country_id" => $country_id, "last_updated" => $time)); $afftectedRows = $this->db->affected_rows();
}

Source : https://stackoverflow.com/questions/8606437/codeigniter-this-db-affected-rows-always-returns-1 | Last Update : Fri, 12 Nov 21

Answers related to update numof rows codeigniter

Code Explorer Popular Question For Php