I have programmatically defined an order to display records from the db which I have in an array:
Array
(
[repair_id] => Array
(
[0] => 26
[1] => 21
)
)
Of course, when the records are retrieved, they appear in order (21,26):
stdClass Object
(
[repair_id] => 21
[db_date] => 0000-00-00
[location] => IN-HOUSE
[repair_name] => PRESSURE TEST
[part_nomenclature] => INLET CASE
[description] => Pressure test internal tubing per Engine Manual 72-72-72
Ok
)
stdClass Object
(
[repair_id] => 26
[db_date] => 0000-00-00
[location] => IN-HOUSE
[repair_name] => PRESSURE TEST
[part_nomenclature] => INLET CASE
[description] => Pressure test IAW 72-72-72
)
How do I couple the two arrays so that the records are displayed using the defined order (26,21) after being retrieved from the db? I’ve been beating my head against the wall for days, any help is greatly appreciated.