title: How do I add hyperlink into each row in dynamic table?
body: <pre><code>serialID(AI)|locations | telephone | address
  ---------------------------------------------
  1           | A       
  2           | B
  3           | C
  4           | D
  
  users table
  userID | location choosen
  -------------------------
  1      | A
  2      | B
  3      | B
  </code></pre>
  
  <p>How do I add hyperlink into each row in dynamic table?</p>
  
  <p>For example(this is a dynamic table) it will change.. depends on the user's favourable.</p>
  
  <pre><code>location | address | telephone | user's favourable
  B        |  -      | -         |  2
  A        |  -      | -         |  1
  C        |  -      | -         |  0
  D        |   -     | -         |  0
  </code></pre>
  
  <p>So if I hover my mouse to row A, I can go to another php page and display the necessary details example like which users choosen location A. Is there any way to do it? Please help. </p>
  
  <p>This is the create table codes -></p>
  
  <pre><code>&lt;?php
  include mysqli.connect.php";
  
     $retrieveLocation = SELECT l.locations, l.telephone, l.address, COUNT (u.userID) as userID
      FROM location AS l
      LEFT OUTER JOIN users AS u on l.locations = u.location_chosen
      GROUP BY l.locations
      ORDER BY userID DESC;
  
     $result = $mysqli-&gt;query($retrieveLocation);
  
        while ($row = $result-&gt;fetch_array(MYSQLI_ASSOC))
        { 
          echo "&lt;tr&gt;&lt;td&gt;{$row['locations']}&lt;/td&gt;&lt;td&gt;{$row['telephone']}&lt;/td&gt;&lt;td&gt;{$row['addression']}&lt;/td&gt;&lt;td&gt;{$row['userID']}&lt;/td&gt;&lt;/tr&gt;";
        }
  ?&gt;
  </code></pre>