Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>try this: </p> <pre><code>//////search.php ///// &lt;form method="post" action="result.php" &gt; &lt;tr&gt; &lt;INPUT type=text size=20 name=pricemin &gt;&lt;BR&gt; &lt;/tr&gt; &lt;tr&gt; &lt;INPUT type=text size=20 name=pricemax &gt;&lt;BR&gt; &lt;/tr&gt; &lt;tr&gt; &lt;input type="submit" class="Nom" id="button" value="Valider" /&gt;&lt;/tr&gt;&lt;/form&gt; ///////result.php ////// &lt;?php include 'includes/connection.php'; $pricemin = $_POST['pricemin ']; $pricemax = $_POST['pricemax ']; $query = "SELECT * FROM product where price between '".$pricemin."' and '".$pricemax."'"; $result = mysql_query($query); if(mysql_num_rows($result) &gt; 0) while($products = mysql_fetch_array($result)) { $id = $products['id_product']; echo $products['name_product'] ;echo $products['price_product'] ; echo "&lt;a href='info.php?id="; echo $id; echo "'&gt;More infos&lt;/a&gt;" ?&gt; &lt;?php } ?&gt;... ///// info.php ////// &lt;?php include 'includes/connection.php'; $id_product = $_GET['id']; $query = "SELECT * FROM bien where id_product= '".$id_product."'"; $result = mysql_query($query); ?&gt; &lt;html&gt;&lt;head&gt;&lt;title&gt;.. &lt;/title&gt;&lt;/head&gt;&lt;body&gt; &lt;?php while($products = mysql_fetch_array($result)) {?&gt; &lt;h1&gt;Product ID : &lt;?php echo $products['id_product'] ; ?&gt; &lt;/h1&gt; &lt;h1&gt;Product name : &lt;?php echo $products['name_product'] ; ?&gt; &lt;/h1&gt; &lt;h1&gt;Product Qt : &lt;?php echo $products['quantity_product'] ; ?&gt; &lt;/h1&gt; &lt;h1&gt;Product Spec : &lt;?php echo $products['spec_product'] ; ?&gt; &lt;/h1&gt; &lt;?php } ?&gt;&lt;/body&gt;&lt;/html&gt; </code></pre> <p>this should pass ID to info.php</p> <p>Also Form will only work if you submit a button, so if you were to click a link, form will not submit unless you use a JS onsubmit function.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload