It is necessary to make a request that looks for possible matches, but it’s necessary that he urgently takes into account 2 conditions.
SELECT * FROM objects WHERE ID='$id1' or tower='$tower1' or reg='$adress1' or floor='$floor1' or area='$area1' or undonds='$undonds1' or price='$price1' and rentorsale='1'and salebis='1' In this example, rentorsale and salebis should be counted first, and then, if they are the same, others should be counted. Now the problem is that only rentorsale is taken into account, and the salebis is ignored.