Welcome Guest, Not a member yet? Register   Sign In
problem with update table
#1

[eluser]pam81[/eluser]
hi, i'm trying to update two rows in this way

$this->db->where("id",1); $this->db->update("movil",array("ordenbase"=>$nuevoorden));

$this->db->where("id",2);
$this->db->update("movil",array("ordenbase"=>$orden));

but it's not working. Once it update row=1 and other time it update row=2 but it's like a random behauvior.
#2

[eluser]allaerd[/eluser]
did you try $this->db->affected_rows() to see if it actually does update?
#3

[eluser]danmontgomery[/eluser]
Enable profiler to see what queries are being run?

Code:
$this->output->enable_profiler();




Theme © iAndrew 2016 - Forum software by © MyBB