title: PHP basic database link help
body: <p>i want to fetch a field from database eg. "name" and then use it as a link to display further info about that name from the database itself
  i used -</p>
  
  <pre><code>while($re=mysql_fetch_array($result))
    {
  
  echo"&lt;a href=\"test.php?id=1\"&gt;{$re["name"]}'&lt;/a&gt;'";
  
      }
  </code></pre>
  
  <p>but i want that each 'name' entry when fetched from database be assigned different id like-
  adam id=1
  chris id=2 
  so that in the next page i can GET that id and display contents accordingly.
  please help.</p>