Jump to content

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]'";

 

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.