title: Pass the id of href into the href link
body: <p>So here is my problem.I want the id of the href which is taken dynamically to be printed in the url.
  My code of category.php:</p>
  
  <p><strong>CATEGORY.PHP</strong></p>
  
  <pre><code>while($row = mysql_fetch_assoc($result))
  {   
      echo '&lt;a id="' . $row['topic_id'] . '"  href="category.php?id=' . 
           $_SESSION['id'] . '&amp;check1=//what should i put here?"&gt;;
  }
  </code></pre>
  
  <p>all i want is for check1 to have the id of each link seperately so if i have 3 links(depends on the database) the 2nd link will have id=2 and i want to print id=2 the next time category.php is loaded.</p>
  
  <p><strong>BUT</strong></p>
  
  <p>Notice that all id are first printed and then someone will choose one of these links.</p>