2013-10-17, 08:14 PM
I'm trying to select all teams in the league and order them by their wins, and then by their amount of ties. It's only letting me put in 1 order clause.. any help?
This is what I currently have that orders by JUST wins.. the column for ties is 'record_ties'.
Thanks![/php]
This is what I currently have that orders by JUST wins.. the column for ties is 'record_ties'.
Thanks![/php]
$db->simple_select("teams", "*", "`league` = '".$db->escape_string($_GET[id])."'", array("order_by" => "record_wins", "order_dir" => "DESC"));