title: Coding dynamic anchor tags
body: <p>I want to link an anchor tag from one page to another. The second of which is a view all page that pulls data from the database. When run the code below, the second page is loaded but doesn't move to the tag. Here is the code for the 1st page:</p>
  
  <pre><code>echo "&lt;h2&gt;$dd. $info and ID is 
                               **&lt;a href=\"v.php#".$row['id']."\"&gt;$id&lt;/a&gt;**&lt;/h2&gt;&lt;hr /&gt;";
  </code></pre>
  
  <p>Here is the code for the page it should point to:</p>
  
  <pre><code>while($row = mysql_fetch_array( $result )) {   
  
       **$ggg = $row['id'];**
  
  
              echo "&lt;tr&gt;";
                              echo '&lt;td&gt;&lt;a href="delete.php?id=' . $row['id'] . '"&gt;&lt;input type="button"   value="Delete"&gt;&lt;/a&gt;&lt;/td&gt;**&lt;a name="$ggg"&gt;&lt;/a&gt;**';
  
                              echo '&lt;td&gt;' . $row['id'] . '&lt;/td&gt;';
              echo '&lt;td&gt;' . $row['info'] . '&lt;/td&gt;';           
                              echo "&lt;/tr&gt;"; 
      }
  </code></pre>