Re: [PHP] Order by Date (Newbie)

2001-02-23 Thread Kyndig
On Fri, 23 Feb 2001, Brian S. Drexler wrote: > Ok, I must be missing something, but does anyone have a script that will > order by the closest date in the future that hasn't been here yet. Did that > make sense? > > Brian > $plusten = mktime(0,0,0,date("m"),date("d")+10,date("Y") ); Will take

Re: [PHP] Order by Date (Newbie)

2001-02-23 Thread Joe Stump
To order by dates use SQL select * from news order by PostDate DESC; and then make sure that PostDate is a date or datetime - hell even an int with a unix timestamp (aka time()) will work. --Joe On Fri, Feb 23, 2001 at 07:52:54PM -0500, Brian S. Drexler wrote: > Ok, I must be missing something

[PHP] Order by Date (Newbie)

2001-02-23 Thread Brian S. Drexler
Ok, I must be missing something, but does anyone have a script that will order by the closest date in the future that hasn't been here yet. Did that make sense? Brian -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [