title: show article ID in URL when link is active
body: <p>I have a newspage where every article is being showed by a SQL while loop
  the date and title is visible but to read more you have to click a a href and the accordion
  slides down and the article will be visible.
  what i'm trying to reach is that when you click on the read more, the article ID is shown/passed to the url.</p>
  
  <p>So this i have now:<code>index.php?pagina=nieuws</code></p>
  
  <p>This is what i'm trying to reach:
  <code>index.php?pagina=nieuws#id=25</code> or so</p>
  
  <p>Don't know what to change or to add so an example would be helpful</p>
  
  <pre><code>require_once("...");
  mysql_select_db("...");
  $query="SELECT id,datum,titel,artikel FROM nieuws ORDER BY id DESC";
  $id = $_GET['id'];
  $result=mysql_query($query);
  if(isset($_GET["id"])) {
  echo $_GET["id"];
  }
  
  $(document).ready(function(){
  $('.acc_containernieuws').hide(); 
  $('.acc_triggernieuws').click(function(){
  if( $(this).next().is(':hidden') ) { 
      $('.acc_triggernieuws').removeClass('active').next().slideUp();
      $(this).toggleClass('active').next().slideDown();
  }
  return false; //Prevent the browser jump to the link anchor
  });
  
  });
  
  while(list($id,$datum,$titel,$artikel) = mysql_fetch_row($result)){
  echo("&lt;div id=\"artikeltitel\" align=\"center\"&gt;
  &lt;div id=\"containerdatum\"&gt;$datum&lt;/div&gt;
  &lt;div id=\"containertitel\"&gt;$titel&lt;/div&gt;
  &lt;div id=\"container3\" style=\"font-size:12px;\"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;div class=\"containernieuws\" align=\"center\"&gt;
  &lt;h2 class=\"acc_triggernieuws\"&gt;&lt;a href=\"#?id=$id\"&gt; Meer weergeven &lt;/a&gt;&lt;/h2&gt;
  &lt;div class=\"acc_containernieuws\"&gt;
  &lt;div class=\"blocknieuws\"&gt;$artikel&lt;/div&gt;
  &lt;div class=\"fb-comments\" data-href=\"\" data-num-    posts=\"10\" data-width=\"678\"&gt;&lt;/div&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  ");
  }
  </code></pre>