codeigniter check affected rows
To check the affected rows in CodeIgniter, you can follow the steps below:
1. Use the $this->db->affected_rows()
method after executing a query to get the number of affected rows.
2. The $this
refers to the CodeIgniter super object, and db
is the database class that allows access to the database.
3. By calling the affected_rows()
method, you can obtain the number of affected rows resulting from the most recent query.