New answers tagged

3

Start with: $assoc = $db->loadAssoc(); https://docs.joomla.org/Selecting_data_using_JDatabase#loadAssoc.28.29 This will provide a flat, associative result set array: $assoc = [ 'AIG' => '88,32', 'ALLIANZ' => '86,96', 'LLOYDS' => '118,11', ]; Then prepare the results for sorting by creating a new column as the first element that ...


Top 50 recent answers are included