Re: Retrieve listings between two dates?

From: Date: Fri, 27 Oct 2000 07:09:17 +0000
Subject: Re: Retrieve listings between two dates?
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-3985@lists.php.net to get a copy of this message
On Tue, Oct 24, 2000 at 11:40:51PM -0600, Keith Spiller wrote: > Using the select command, how would you retrieve listings only between certain dates? > > "SELECT * FROM calendar WHERE Year < '2000-12-31' AND > > '2002-01-01' > ORDER BY Start ASC" ??? (This does not work)... try: "SELECT * FROM calendar WHERE Year < '2000-12-31' AND Year > '2000-01-01' ORDER BY Start ASC" I know it works for TIME fields in MySQL. gl, Mike -- Mike Erickson <mee@quidquam> http://www.quidquam.com/ "Hatred is the coward's revenge for being intimidated" - George Bernard Shaw

« previous php.db (#3985) next »