Welcome Guest, Not a member yet? Register   Sign In
Check query then redirect

I have a link that deletes a db record. How would I check if the record was deleted successfully then redirect them back to the View they were on? Is this the ideal spot to use Sessions?

[eluser]Armchair Samurai[/eluser]
Use $this->db->affected_rows() after you delete the record, then redirect based on the result.

But how do I know what view to load?

Theme © iAndrew 2016 - Forum software by © MyBB