title: how to get size dropdown on specific page where we required for example on clothing,footwear
body: <p>How to get size dropdown on specific page where we required for example on clothing, footwear
  and not on all the pages.by this coding we are getting dropdown on all the pages and when we 
  select size it should go to <code>temorderdetails</code> detdatabase.when we select size from dropdown
  and send all size are shown in database</p>
  
  <p><strong>product.php</strong></p>
  
  <pre><code>&lt;?php 
  //Check to see the URL variable is set and that it exists in the database
  if(isset($_GET['id'])){
      $id=preg_replace('#[^0-9]#i','',$_GET['id']);
      //Use this var to check to see if this ID exists, if yes then get the product
      //details, if no then exit this script and give message 
      $sql = mysql_query("SELECT * FROM products WHERE id='$id' LIMIT 50");
      $productCount = mysql_num_rows($sql);//count the output amount
      if($productCount &gt; 0){
          //get all the product details
          while($row = mysql_fetch_array($sql)){
              $product_name   =   $row["product_name"];
              $price          =   $row["price"];
              $merchant_id    =   $row["merchant_id"];
              $details        =   $row["details"];
              $typ_id         =   $row["typ_id"];
              $cat_id         =   $row["cat_id"];
              $sub_id         =   $row["sub_id"];
              $qty            =   $row["qty"];
              $size1          =   $row["size1"];
              $size2          =   $row["size2"];
              $size3          =   $row["size3"];
              $size4          =   $row["size4"];
              $size5          =   $row["size5"];
              $product_img2   =   $row["product_img2"];
              $product_img3   =   $row["product_img3"];
              $date_added     =   strftime("%b %d, %Y",strtotime($row["date_added"]));         
          }
      }else{
          $dynamicList .= "That item doesnot exit."; 
          exit();
      }
  
  }else{
      echo "Data to render this page is missing.";  
      exit();
  }
  
  mysql_close();
  ?&gt;
  
  &lt;select name="size" id="size"&gt;
      &lt;option&gt;Select a Size&lt;/option&gt;
      &lt;option value="$size1"&gt;&lt;?php echo $size1; ?&gt;&lt;/option&gt;&lt;br/&gt;
      &lt;option value="$size2"&gt;&lt;?php echo $size2; ?&gt;&lt;/option&gt;&lt;br/&gt;
      &lt;option value="$size3"&gt;&lt;?php echo $size3; ?&gt;&lt;/option&gt;&lt;br/&gt;
      &lt;option value="$size4"&gt;&lt;?php echo $size4; ?&gt;&lt;/option&gt;&lt;br/&gt;
      &lt;option value="$size5"&gt;&lt;?php echo $size5; ?&gt;&lt;/option&gt;&lt;br/&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>Database of <code>temporderdetails</code></p>
  
  <pre><code>id      product_name    details                 price       qty     size1   size2   size3   size4       size5   total       omid    name    
  134     canon           fyuytu                  10000.00    0                                                   10000.00    1   
  142     samsung         tab cgbfh               30000.00    0                                                   30000.00    1
  137     titen           sdfsf                   1000.00     0                                                   1000.00     2   
  140     kurti           fgfcgh                  300.00      0                                                   300.00      2   
  178     Fastrack        &lt;p&gt;Asrfsgfdgfg&lt;/p&gt;      9990.00     1       0       0       0       0                   9990.00     4   
  185     Tab             &lt;p&gt;Afrdetfgdghjh&lt;/p&gt;    20000.00    1       0       0       0       0                   20000.00    4   
  </code></pre>
  
  <p>How to get size dropdown on specific page where we required for example on clothing,footwear
  and not on all the pages? By this coding we are getting dropdown on all the pages and when we 
  select size it should go to <code>temorderdetails</code> detdatabase.when we select size from dropdown
  and send all size are shown in database.</p>