Jump to content

[SOLVED] Multiple Search Queries


iceblox

Recommended Posts

Hi Guys,

 

I have no code to post as of yet, just want to know whats going to be the best route to take. Im going to have 3 or 4 drop down boxes each one allowing the user to define the search in differnt ways. Whats going to be the best way to carry the variables? Im thinking the post method but not sure. Any ideas?

 

Cheers

Link to comment
https://forums.phpfreaks.com/topic/53759-solved-multiple-search-queries/
Share on other sites

Apologies for the last message being a bit blunt. But it is working now! All is good apart from if i use a > "greater than" clause or "less than" < it does actually that but misses out the same value.

 

F.A.O if i put minimum price as 10000 and max as 75000. The script would miss out any results with a price of 10000 and any of 75000.

 

Here is the code.

 

 

$query = "SELECT * FROM test WHERE area_id='$_POST[area_id]' AND beds>'$_POST[beds]' AND price>'$_POST[min]'";

 

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.