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

[eluser]bennyhill[/eluser]
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?
#2

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

[eluser]bennyhill[/eluser]
But how do I know what view to load?




Theme © iAndrew 2016 - Forum software by © MyBB