php search script
<p>i need some help to search property searching like on </p>

<p><a href="http://www.zameen.com" rel="nofollow">Zameen</a></p>

<p>what i am unaware of is that how would i send the query to the next page? eg my query is like this</p>

<pre><code>$query = select * from xyz where city='a' and location='b' and price between 'c' and 'd' and area between 'e' and 'f' and bedrooms='g' and addedwithin 'h';
</code></pre>

<p>considering this query on the basis of form on the above mentioned website, what should be the scenario for searching property listings.</p>

<p>Also how should i get this query again when i use paging with this page. should it be like this</p>

<pre><code>&lt;a href="&lt;?php echo $_SERVER['PHP_SELF'] . '?q=' . $query; ?&gt;" &gt; nextpage &lt;/a&gt;
</code></pre>

<p>or is there any other simpler solution?</p>

<p>Thanks</p>
