RE: [PHP] creating a development log
| From: | Chris W. Parker | Date: | Fri, 29 Aug 2003 22:15:57 +0000 |
| Subject: | RE: [PHP] creating a development log | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-161206@lists.php.net to get a copy of this message | ||
Merlin <mailto:news.groups@web.de>
on Friday, August 29, 2003 3:03 PM said:
> Unfortuantelley this looks way more complicated than I thought. How to
> group by date and still get the entry, and how can I arange it, that
> it outputs only the one for the date and then closes the list`?
To display the output like you've got in your post you'd do something
like this:
(pseudo code)
$arrayOfEntries = GetEntries();
$previousDate = "";
foreach($arrayOfEntries as $entry)
{
if($previousDate != $entry['date'])
{
// show date header
// show comment for this record
}
else
{
// show comment only
}
$previousDate = $entry['date'];
}
Let me know if this helps (and if it doesn't too).
Chris.