Actually, you'd probably want to do that in the SQL for whatever database
you're using.  

i.e.

ORDER BY story_date
LIMIT 4 

---------------------
John Asendorf - [EMAIL PROTECTED]
Web Applications Developer
http://www.lcounty.com - NEW FEATURES ADDED DAILY!
Licking County, Ohio, USA
740-349-3631
Nullum magnum ingenium sine mixtura dementiae fuit


> -----Original Message-----
> From: Aidal [mailto:aidal@;nospam.dk]
> Sent: Tuesday, November 05, 2002 5:05 AM
> To: [EMAIL PROTECTED]
> Subject: [PHP-WIN] dates
> 
> 
> Hi NG.
> 
> I was wondering if anyone knows of a (maybe build-in) way to 
> check dates.
> Say I want to show some articles on a page, the articles I 
> want to show here
> are the latest aka those created on the current date or the 
> date closest to
> the current date.
> 
> Regards
> ~ Aidal
> 
> 
> 
> -- 
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to