Welcome Guest, Not a member yet? Register   Sign In
Using varialbes with more than one sql operation.
#2

[eluser]manilodisan[/eluser]
I don't think it will work. I suggest you to execute the query inside the loop:

Code:
for ($i = 1; $i <= 10; $i++ )
{
        $id = $this->input->post('field'.$i);
        $this->db->query("DELETE FROM table WHERE id =".$this->db->escape($id)."");
}


Messages In This Thread
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 06:35 AM
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 06:40 AM
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 06:46 AM
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 07:03 AM
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 07:21 AM
Using varialbes with more than one sql operation. - by El Forum - 10-20-2008, 09:21 AM



Theme © iAndrew 2016 - Forum software by © MyBB