title: How to send PHP variable through href
body: <p>This is my fetch.php file which works currently but I can't seem to connect my php hyperlink to the gene.php file.</p>
  
  <p>I'm thinking about how I can separate the html from the php to follow other suggestions but struggling on how to do this.</p>
  
  <pre><code> while($row = mysqli_fetch_array($result))
    {
   $output .= '
   &lt;tr&gt;
  &lt;td&gt;&lt;a href="gene.php?id=' . $row['mRNA'] . '"&gt;'.$row["mRNA"].'&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;&lt;a href="gene.php?id=' . $row['mRNA'] . '"&gt;'.$row["Gene"].'&lt;/a&gt;&lt;/td&gt;
  &lt;td&gt;'.$row["Subtype"].'&lt;/td&gt;
  &lt;/tr&gt;
  ';
    }
  echo $output;
  }
  ?&gt;
  </code></pre>
  
  <p>If possible, I'm hoping I could pass the new gene.php?id variable back as a query on my gene.php page.</p>
  
  <pre><code>   &lt;?php
     $connect = mysqli_connect("localhost", "root", "", "database");
     $id[0] = $_REQUEST['id'];
     $query = "SELECT * FROM genenames WHERE mRNA=".$id."";
  </code></pre>