DB Select Average

#2
[eluser]WanWizard[/eluser]
Code:
$this->db->select_avg('price', 'price');
$this->db->where('restaurant', $restaurant->id);
$query = $this->db->get('menu_items');
$row = $query->row();
echo $row->price;


Messages In This Thread
DB Select Average - by El Forum - 08-29-2010, 08:51 PM
DB Select Average - by El Forum - 08-30-2010, 01:58 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2019 MyBB Group.