Try this:
<?php
$type = $_POST['type'];
$status = $_POST['status'];
$minPrice = $_POST['min_price'];
$maxPrice = $_POST['max_price'];
$bedrooms = $_POST['bedrooms'];
$baths = $_POST['baths'];
$con=mysqli_connect("localhost","root","","house");
// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM properties WHERE tipo='$type' and baths = '$baths' and bedrooms = '$bedrooms' and status = '$status' and price between '$minPrice' and '$maxPrice'");
while($row = mysqli_fetch_array($result)) {
echo $row['type'] . " " . $row['status'];
echo "<br>";
}
mysqli_close($con);
I have created a table here and it is working. Do not forget to change on html code " tag and add on this the property "name"