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

[eluser]Michael Wales[/eluser]
With his code, if it was deleting a single row - his code would still not execute the logging and such.
Code:
if ($affected_rows == 0) { // if (true == false)
  // This is never run, because true != false
}

I agree, echoing out $affected_rows is the first step in solving this issue though. Does $affected_rows in fact = 0? What if affected_row = FALSE and it's a completely seperate issue?


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



Theme © iAndrew 2016 - Forum software by © MyBB