title: I need help to implement a combo-box which refines searches based on user query searches using PHP
body: <p>Ok so I have implemented a search algorithm which allows users to search for mobile phones. But I would like to implement a feature at the top of my search which allows users to refine there search. For example, they can select a value from a d combo box which allows users to refine their search by [Lowest Price, Highest Price, Most Relevant] and so on. I would like to implement this in my PHP code. </p>
  
  <p>The HTML code: </p>
  
  <pre><code>&lt;form method="post"&gt;   
  &lt;div class="text-right"&gt;
      &lt;select name="refineSearch" readonly="readonly" style="height: 22px"&gt;
  &lt;option value="Lowest"&gt;Lowest Price First&lt;/option&gt;
  &lt;option value="Higeset"&gt;Higest Price First&lt;/option&gt;
      &lt;/select&gt;   &lt;/div&gt;
   &lt;div id="query_results"&gt;&lt;/div&gt;
  
   &lt;/form&gt;
  </code></pre>
  
  <p>sql code </p>
  
  <pre><code>SELECT * FROM Phone WHERE UPPER (Phone_Name) LIKE ('%$search%') &amp;&amp;        Sale_Type = 'Sell' &amp;&amp;  Phone_Price &lt;= '$price';
  </code></pre>