title: PHP Add button to view all the contents of entire record MySQL
body: <p>Currently I have a query running that brings up all the contents of the 'products' table and the 'user' associated with the products. It prints on a table. I want to create a button, that brings up the entire records.
  Please note that I must only be able to view the selected record only.. How would I go about this? </p>
  
  <pre><code>echo "&lt;table border='1'&gt;
  &lt;tr&gt;
  &lt;th&gt;user_id&lt;/th&gt;
  &lt;th&gt;user_name&lt;/th&gt;
  &lt;th&gt;selected_product&lt;/th&gt;
  while($row = mysqli_fetch_array($result, MYSQLI_ASSOC))
  
  
    echo "&lt;td&gt;" . $row['user_id'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['user_name'] . "&lt;/td&gt;";
    echo "&lt;td&gt;" . $row['selected_product'] . "&lt;/td&gt;";
  </code></pre>
  
  <p>So a button should appear for each record that is returned as a result. When I click this button another window should appear which shows the entire contents  (for this record only) and the user associated.
  How does the button know which record its associated with.</p>