j baldwin wrote:
> i am trying to filter one record set with another.
You need to join the two tables and run a single query:
SELECT merchant_inv.hotel_id, merchant_inv.name,
merchant_inv.low_rate,
merchant_inv.high_rate, merchant_inv.star_rating,
images.thumbnail_url
FROM merchant_inv, images
WHERE merchant_inv.city LIKE 'New York%' and
merchant_inv.state_province =
'NY' AND merchant_inv.high_rate <= '200' AND
merchant_inv.star_rating =
'3.0'
AND merchant_inv.hotel_id = images.hotel_id
--
David Powers
Adobe Community Expert
Author, "Foundation PHP for Dreamweaver 8" (friends of ED)
http://foundationphp.com/