At the moment, if I make a query in the database that should only return one row using:
...query stuff... $query = $this->db->get(); $ret = $query->result(); return $ret[0]->campaign_id;
Is there a CodeIgniter function to return the first line? something like $query->row();
Or it would be even better if, if there was only one line, just use the request object directly.
eg. $query->campaign_id;
database codeigniter
Hailwood Nov 25 '10 at 7:15 2010-11-25 19:15
source share