Hello
Im trying to get from my database only the data that is within the range typed by the user
for example :
price range :
_________ till ______________
lets say the user typed : 10,000 till 30,000
now in the data base there is JUST the price of the house.
what will be the php query code in this case?
i was trying something like :
Code:
SELECT * FROM $tbl_name WHERE cidade='$cidade' AND bairro='$bairro' AND category='$category' AND quartos='2'||'3' AND preco<='$preco2' || <='$preco1'
the important part is : AND '$preco1'>=preco<='$preco2'
any help ? Thanks a lot
Danny
p.s.
as well i wanted to know if the query in general is ok
will it show the user only the data base entries between the price range ?