How to know the no of deleted rows in codeigniter provided that $this->db->affected_rows() returns every time ie. on success or on fail also
How to know the no of deleted rows in codeigniter provided that $this->db->affected_rows() returns
Share
I don’t use CodeIgniter, but normally,
affected_rows( )should return the number of rows affected. That means, if the query succeeded, it should always be an integer. If 0 is returned, no rows are deleted, if > 0, that number is deleted.