Re: Date Q

From: Date: Fri, 10 May 2002 04:58:46 +0000
Subject: Re: Date Q
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96902@lists.php.net to get a copy of this message
On Friday 10 May 2002 13:02, Jason Soza wrote: > If I have a MySQL field full of dates and other info, and my PHP script > displays all this, how would I isolate the min and max in the date field? > Like I want to print something like: > > Information, from 01-03-2001 through 01-03-2002 > > If someone could give me an example or point me to the manual section that > describes this, that'd be great. Thanks! select min(datefield) as mindate, max(datefield) as maxdate from table; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* QOTD: The only easy way to tell a hamster from a gerbil is that the gerbil has more dark meat. */

« previous php.general (#96902) next »