title: Passing Primary key "id" all value in URL Parameter : PHP - MYSQLI
body: <p>I want to pass my primary key all id value in single url parameter :</p>
  
  <p><em>PRODUCT TABLE :</em></p>
  
  <pre><code>id    -- int 11 , primary key
  name  -- varchar
  desp  -- varecha
  </code></pre>
  
  <p>table data :</p>
  
  <pre><code>    id | name   |   desp 
    ------------------------
      1  |  A     |    f
      2  |  B     |   fg
      3  |  C     |   ghb
      4  |  g     |   bn
  </code></pre>
  
  <p>below code :</p>
  
  <pre><code>$sql = "SELECT id from product";
  $result = mysqli_query($db,$sql);
  
  
  while ($myrow = mysqli_fetch_array($result)){
  
  $id = $myrow['id'];
  
  // echo $id : 1234
  }
  </code></pre>
  
  <p>hence i am getting id value but i need to pass this "id" value in single URL PARAMETER:</p>
  
  <pre><code>&lt;a href="test.php?test=".$_GET['tes']."&amp;pid=".$id." " &gt;url parameter&lt;/a&gt;
  </code></pre>
  
  <p><strong>note :</strong> i cant keep this anchor link in my while loop , as i want this a single link that will be shown in another  table</p>
  
  <p><em>hence my link would be something like :</em></p>
  
  <pre><code>test.php?test=as&amp;pid=1234
  </code></pre>
  
  <p>but i am unable to get <strong>pid=1234</strong></p>
  
  <p>hence please let me know how i can get the same</p>