This is hopefully an easy one.
Basically I have a little loop using some PHP, that looks like this :
Normally I'd display a date using the syntax :PHP Code:<?php
$groups = array();
while ($row = mysql_fetch_assoc($rsReviews)) {
$groups[$row['Product']][] = $row;
}
foreach ($groups as $product_name => $rows) {
echo "<tr><td class=\"product\">$product_name</td></tr>";
foreach ($rows as $row) {
echo "<tr><td class=\"review\">".$row['Review']."</td></tr>";
echo "<tr><td class=\"name\">".$row['CustomerName']."<br></td></tr>";
echo "<tr><td class=\"date\">".$row['Date']."</td></tr>
";
}
}
?>
So my question is really what should the syntax be in the loop code to display the particular date format?PHP Code:<?php echo date('j F Y',strtotime($rsReviews['date'])); ?>









Bookmarks