Syntax for date format within a loop

This is hopefully an easy one.

Basically I have a little loop using some PHP, that looks like this :


<?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>         
";
    } 
} 
?>

Normally I’d display a date using the syntax :


<?php echo date('j F Y',strtotime($rsReviews['date'])); ?>

So my question is really what should the syntax be in the loop code to display the particular date format?

isn’t this a php question?

replace ‘date’ in your formatting function version with $row[‘Date’]
and put that where you currently have $row[‘Date’] in your loop .