$red_widgets = $db->get_where('inventory', array('color' => red));
$prices = array();
foreach($red_widgets as $widget)
{
array_push($prices, $db->get_where('prices', array('id' => $widget['id])));
}
echo min($prices);
$db->wheres = array(); // reset the $wheres
... $this->_clear(); return (object) $returns; }
It looks like you're new here. If you want to get involved, click one of these buttons!