skirrow
May 27th, 2001, 13:27
Hi,
Ok, I have a flat file database which looks something like this:
$name|$rdate
Actually, it looks nothing like that but it gives you the idea.
The file has quite a few records in it, one per line.
What I want to do is display the 5 most recent additions.
Ordered by $date.
So the most recent is at the top and oldest at the bottom.
But only the 5 most recent.
Thanks a lot in advance.
If it's easier.
How would I display the bottom 5 lines of the file (formatted)
- Neil :)
Ok, I have a flat file database which looks something like this:
$name|$rdate
Actually, it looks nothing like that but it gives you the idea.
The file has quite a few records in it, one per line.
What I want to do is display the 5 most recent additions.
Ordered by $date.
So the most recent is at the top and oldest at the bottom.
But only the 5 most recent.
Thanks a lot in advance.
If it's easier.
How would I display the bottom 5 lines of the file (formatted)
- Neil :)