Jump to content

Search Buttons


phpnoob90

Recommended Posts

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

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.