Welcome Guest, Not a member yet? Register   Sign In
insert_id not working
#6

[eluser]cPage[/eluser]
Or this in your model, if you dont have primary key
Code:
function last_id()
{
$int = $this->db->count_all($this->table);
$query = $this->db->get($this->table,1,--$int);
return $query->row()->id;
}


Messages In This Thread
insert_id not working - by El Forum - 01-24-2013, 03:45 PM
insert_id not working - by El Forum - 01-24-2013, 04:44 PM
insert_id not working - by El Forum - 01-24-2013, 05:07 PM
insert_id not working - by El Forum - 01-24-2013, 08:39 PM
insert_id not working - by El Forum - 01-24-2013, 10:53 PM
insert_id not working - by El Forum - 01-24-2013, 11:00 PM
insert_id not working - by El Forum - 01-24-2013, 11:03 PM
insert_id not working - by El Forum - 01-24-2013, 11:44 PM
insert_id not working - by El Forum - 01-25-2013, 01:24 AM
insert_id not working - by El Forum - 01-25-2013, 02:33 AM
insert_id not working - by El Forum - 01-25-2013, 02:44 AM
insert_id not working - by El Forum - 01-25-2013, 03:14 AM
insert_id not working - by El Forum - 01-25-2013, 09:59 AM
insert_id not working - by El Forum - 01-25-2013, 11:35 PM
insert_id not working - by El Forum - 01-28-2013, 03:03 PM
insert_id not working - by El Forum - 01-28-2013, 03:08 PM
insert_id not working - by El Forum - 01-28-2013, 06:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB