Re: Database help needed

From: Date: Thu, 22 Nov 2001 06:13:03 +0000
Subject: Re: Database help needed
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-14524@lists.php.net to get a copy of this message
> This may sound like an odd question and something that I should know, > but ....... > > I need to display results by amount - for example, for all properties > which are either or between 450,000 and 500,000 (For example) - how > using PHP and MySQL do I get it to display 450,000, 50,000 and all > inbetween ??? I can easily get it to display one or the other, but > it is a search which is based on cost of property. How will I format > the MySQL query to get it to do this? You can do something like: SELECT * FROM property WHERE price BETWEEN 450000 AND 500000; hth -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk /* Skill without imagination is craftsmanship and gives us many useful objects such as wickerwork picnic baskets. Imagination without skill gives us modern art. -- Tom Stoppard */

« previous php.db (#14524) next »