Forum Moderators: coopster
7/7/2006 11:05 200
7/7/2006 11:10 300
7/8/2006 11:05 100
7/8/2006 11:10 50
How can I query this data and have it arranged as so:
_______ 11:05 11:10
7/7/2006 200 - 300
7/8/2006 100 - 50
(Dashes and Underscores are simply to help align the numbers visually within this post.)
My mind is about to explode on trying to figure this out! Any ideas?
I appreciate any help that I can be given.
$date = "0000-00-00";
echo "<table><tr>";
echo "<th>Date</th>...<th>11:00</th><th>11:05</th>...";
while("loop through rows here") {
$arrFoo = "let's assume you get the row data here";
if($date!= $arrFoo['DateColumn']) {
echo "</tr><tr>";
echo "<td>" . $arrFoo['DateColumn'] . "</td>";
$date = $arrFoo['DateColumn'];
}
echo "<td>" . $arrFoo['TimeColumn'] . "</td>";
}
echo "</tr></table>";