I am querying sql and response feedback is as follows in an array format stored in $result_rows,
print_r($result_rows) - shows the following 2D array
Array
(
[0] => Array
(
[employee_zipcode] => 70062
[employee_name] => Carter Jr
[employee_address] => 472 Shadowmar Drive Kenner, LA
[employee_id_series] => 6144
)
[1] => Array
(
[employee_zipcode] => 70062
[site_name] => Carter Sr
[address] => 472 Shadowmar Drive Kenner, LA
[employee_id_series] => 6144
)
[2] => Array
(
[employee_zipcode] => 29210
[site_name] => Claude
[address] => 2308 Wexford Way Columbia, SC
[employee_id_series]=> 6144
)
)
The above dynamic result is obtained when I query employee_id_series by 6144
I am confused on how to sort down the array and print it to a html table in this format
Desired Result:
Emp Emp Emp
Zipcode_Series Name Address
70062_6144
70062_6144 Carter 472 Shadowmar Drive Kenner, LA
29210_6144 Claude 2308 Wexford Way Columbia, SC
NOTE: sorting_joining is done based on employee_zipcode value,
whose same value(70062) is cross checked through out the array.
group by employee_zipcode?