My country table has these columns: rank_id, and country_name.
Right now it's ordering by name, but I'm trying to put a few specific countries at the top of the list in their rank order, and then the rest to follow via name.
Here's my query:
foreach ($db->query("SELECT * FROM " . config_item('cart', 'table_countries') . "") as $row)
$countries[] = $row;
Any ideas?
rand_idthe "rank order", or the primary key?rand_idcolumn. My take is you should have a third column calledrank_orderand order by that, and then order by name.