I have an array ($arr) of arrays ($ar) in which I want to describe the columns in a report.
The salient elements include the column headings and the MYSQL field to use:
Array ( "City", 12, 29,"Y", "City_date", "City_Total" ),
Array ( "Atmos", 8, 23, "Y", "Atmos_date", "Atmos_Total" ),
etc.
The headings work well but I do not get the contents of "City_date" or "City_total"
using:
reset($ar);
foreach ($arr as $ar){;but to no avail.
$d = $ar[4];
$a = $ar[5];
echo '<td><span class="blue">' . $d . '</span><br><span class="red">' . $a . '</span></td>' ;
};,
The result is a column with "City_date" and "City_total" in 2 lines.
I have tried using the &character. but to no avail.