phpnoob90 Posted January 31, 2008 Share Posted January 31, 2008 I currently have a real estate website, it has a search form, it currently searches the database for all propertys for sale and rent but would like to change it so that it only searches for rented property is there a code i can put behind the button to make this possible the code behind the button is currently onclick="javascript:SearchTop() for a better idea of what im talking about please see my website http://www.houseswitch.co.uk any help is much appreciated Thanks Link to comment https://forums.phpfreaks.com/topic/88789-search-buttons/ Share on other sites More sharing options...
clown[NOR] Posted February 1, 2008 Share Posted February 1, 2008 if i understood you right you want to a specific search for all properties that's allready been rented by someone... you're probably working with a database i asume.. if you have a row in your table that's something like "Rented" and the value is 0 for not rented and 1 for rented, you can make your script sort out all the entries with the value of 1. did i understand your question right? if i did... did u understand what i ment? =) - Clown Link to comment https://forums.phpfreaks.com/topic/88789-search-buttons/#findComment-454868 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.