i presume you got a landlordID in your properties and landlords tables (so one landlord can have many properties). in this case, your first step is to pull all the data into one table using a join...
SELECT * FROM Properties LEFT JOIN Landlords ON Properties.LandlordID = Landlords.LandlordID
This will then be the basis of the query, you then need to produce a WHERE clause for the SQL statement, refining this table to suit the criteria specified, assuming you've got location, rent and type as arrays (if they we're chosen using a multiple selection list) then you assemble the WHERE clause by going through the arrays to produce a string such as..
(Location = "Location1" OR Location = "Location2") AND (Rent = "200-400") AND (Type = "Private")
then bung it on the end of the SQL you had before... SELECT * F ... ordID WHERE (Locat ... )
you get the idea...
if you need any help with the PHP to do the assembling of the WHERE clause, just reply back...
Oh, some advice when having trouble with SQL stuff... always assemble the SQL statement first, then run it... this gives you a chance to debug easily by printing out the contents of a variable
$DEBUG = 1
... some code ...
$query = "SELECT * FROM Landlords";
if($DEBUG) print "<P>".$query."</P>\n";
$result = mysql_query($query);
hope the ramblings are of some help
dom
🙂