I basically have an array looping through some fields, that looks like this :
<?php
$groups = array();
while ($row = mysql_fetch_assoc($rsReviews)) {
$groups[$row['Product']][] = $row;
}
foreach ($groups as $product_name => $rows) {
echo "$product_name\n";
foreach ($rows as $row) {
echo " {$row['Review']}\n";
echo " {$row['CustomerName']}\n";
echo " {$row['Date']}\n";
}
}
?>
But I'm not sure of the syntax to apply styles to the different fields within that code.
I'm basically trying to get this page :
link one
to look more like this page :
link two
But using the array to group reviews under a single Product heading.
Any pointers in the right direction would be much appreciated.