Welcome Guest, Not a member yet? Register   Sign In
$this->db->affected_rows() doesnt return no. rows deleted???
#3

[eluser]Derek Allard[/eluser]
If you echo out $affected_rows without your if statement, what do you see?

What might be happening is that you are removing a single row, thus CI is returning "1" that is evaluating to true? Thus, your code is really

if (true == false)


Messages In This Thread
$this->db->affected_rows() doesnt return no. rows deleted??? - by El Forum - 08-09-2007, 07:29 PM



Theme © iAndrew 2016 - Forum software by © MyBB