Welcome Guest, Not a member yet? Register   Sign In
CRUD and multiple updating
#6

[eluser]Cristian Gilè[/eluser]
If you use pagination you can pass to the model limit and offset and select IDs of the entries you need to update

Code:
$this->db->select('id');
$this->db->limit($limit,$offset);
$query = $this->db->get('your_table');

Now, with the IDs list, you can use the above approach to update the entries.


Messages In This Thread
CRUD and multiple updating - by El Forum - 01-05-2011, 09:07 AM
CRUD and multiple updating - by El Forum - 01-05-2011, 09:22 AM
CRUD and multiple updating - by El Forum - 01-05-2011, 09:25 AM
CRUD and multiple updating - by El Forum - 01-05-2011, 09:38 AM
CRUD and multiple updating - by El Forum - 01-05-2011, 10:03 AM
CRUD and multiple updating - by El Forum - 01-05-2011, 10:22 AM



Theme © iAndrew 2016 - Forum software by © MyBB