[eluser]WanWizard[/eluser]
Assuming that your random text is in a record, and the date is repeated in those records:
Code:
$date = "";
foreach ( $records as $rows )
{
// do we have to print a header?
if ( $date != $rows['date'] )
{
// print the date header
$date = $rows['date'];
echo "<br />",$date,"<br />";
}
echo $rows['text'];
}