If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
I am building a basic search from to query a rental property database. I have created the following query:
$query="select id,add1,add2,city,rent,bedroom from $tbl_prop where
city='$city' and rent <='$rent' and style='$style' and bedroom >= '$bdrm' order by rent";
The problem is that if the user leaves say the rent dropdown blank then I return 0 results instead of all results regardless of the amount of rent.