Welcome Guest, Not a member yet? Register   Sign In
Using select_min()
#2

[eluser]cfraz[/eluser]
Does it work if you change this
Code:
$data = $this->db->get('shop');

to this?
Code:
$data = $this->db->get('shop_id');

Why not use limit(1) instead of select_min()? That way you only read 1 row of the table rather than all of them.


Messages In This Thread
Using select_min() - by El Forum - 12-24-2008, 05:16 PM
Using select_min() - by El Forum - 12-24-2008, 06:45 PM
Using select_min() - by El Forum - 12-24-2008, 07:13 PM



Theme © iAndrew 2016 - Forum software by © MyBB