Welcome Guest, Not a member yet? Register   Sign In
How to use affected_rows in CI4?
#1

I am using a custom model that extends the built-in Model in CI4. I want to know how I can perform the function $this->db->affected_rows() after deleting a row. Most examples online demonstrate how to achieve this using a custom model, rather than extending the CI4 model. Any suggestions would be appreciated.
Reply
#2

PHP Code:
// this
return $this->db->affected_rows();

// or this
echo $this->db->affected_rows(); 
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply




Theme © iAndrew 2016 - Forum software by © MyBB