title: Passing the url in a link not working
body: <p>I'm trying to pass the id of a blogpost in an url. It works in the adminpanel (read blogpost) now I want to do the same on my frontpage, so that it says read more under every blogpost, but when I use the same code it doesn'nt pass the id.</p>
  
  <p>My code that isn't working:</p>
  
  <pre><code>$db_connection = mysql_connect('localhost', 'root', '')or die("cannot connect"); 
          mysql_select_db('database',$conn);
  // mysql query         
  
      $sql_query="SELECT * FROM blog_posts ORDER BY id DESC";
  
  
  // Create the ps_pagination object here
      $pager = new ps_pagination($db_connection,$sql_query,5,5);   
          echo $pager-&gt;renderFullNav();
  
  //The paginate() function returns a mysql result set   
      $rs = $pager-&gt;paginate();   
      while($rows = mysql_fetch_assoc($rs)) {   
  
  // table to display results here // modify here 
      echo '&lt;h1&gt;'.$rows["title"].'&lt;/p&gt;&lt;/h1&gt;';
      echo '&lt;p&gt; '.$rows["post"].'&lt;/p&gt;';
      echo '&lt;p class="klein"&gt;&lt;span&gt;Door&lt;/span&gt;: '.$rows["first_name"].' ';
      echo '&lt;p class="klein"&gt;Geplaatst op&lt;/span&gt;: '.$rows["date_posted"].'&lt;/p&gt;';
      echo "&lt;td&gt;&lt;a class='link' href=\"/admin/bekijk.php?id=$row-&gt;id\"&gt;Lees meer&lt;/a&gt;&lt;/td&gt;";                
      echo "&lt;BR&gt;";
  }   
  // close mysql connection here
    mysql_close();
  </code></pre>
  
  <p>My code that is working:</p>
  
  <pre><code>while($row = mysql_fetch_object($sql)) 
  {
          echo "&lt;tr&gt;";
          echo "&lt;h1&gt;&lt;td&gt;&lt;a class='link' href=\"bekijk.php?id=$row-&gt;id\"&gt;$row-&gt;title&lt;/a&gt;&lt;/td&gt;&lt;/h1&gt;";
          if($row-&gt;id == 0)
          { //home page verberg delete link
          } 
          else 
          {
              // delete functie waarbij een alert word weergegeven of je dit zeker wil
              echo "&lt;td&gt;&lt;a class='link' href=\"javascript:delpage('$row-&gt;id','$row-&gt;title');\"&gt;Verwijder&lt;/a&gt;&lt;/td&gt;";
              echo '&lt;br&gt;';
              echo "&lt;td&gt;&lt;a class='link' href=\"edit.php?id=$row-&gt;id\"&gt;Pas aan&lt;/a&gt;&lt;/td&gt;";
              echo '&lt;br&gt;';
              echo "&lt;td&gt;&lt;a class='link' href=\"bekijk.php?id=$row-&gt;id\"&gt;Bekijk&lt;/a&gt;&lt;/td&gt;";
          }
          echo "&lt;/tr&gt;";
  }
  </code></pre>
  
  <p>They both link to this page:</p>
  
  <pre><code>&lt;?php
  session_start();
  include '../includes/includes.php';
  require('../includes/functions.php'); 
  //make sure user is logged in, function will redirect use if not logged in
  login_required();
  
  //if logout has been clicked run the logout function which will destroy any active sessions and redirect to the login page
  if(isset($_GET['logout'])){
      logout();
  }
  ?&gt;
  
  &lt;html&gt;
  &lt;title&gt;Admin&lt;/title&gt;
  &lt;script src="../ckeditor/ckeditor.js"&gt;&lt;/script&gt;
  &lt;header&gt;&lt;link rel="stylesheet" type="text/css" href="../css/style.css"&gt;&lt;/header&gt;
  
  
  &lt;body&gt;
      &lt;nav&gt;
      &lt;ul&gt;
      &lt;li&gt;&lt;a href="index.php"&gt;Admin&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="../index.php" target=_blank""&gt;Bekijk site&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="voegtoe.php"&gt;Toevoegen&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="verwijder.php"&gt;Posts&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="index.php?logout"&gt;Uitloggen&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
      &lt;/nav&gt;
  &lt;/body&gt;
  
  &lt;/html&gt;
  &lt;?php
  //pak het ID van de pagina die aangepast moet worden
  $id = $_GET['id'];
  $id = mysql_real_escape_string($id);
  $q = mysql_query("SELECT * FROM blog_posts WHERE id='$id'");
  $row = mysql_fetch_object($q);
  ?&gt;
  
  
  &lt;div id="bekijkwrap"&gt;
  &lt;form action="" method="post"&gt;
  &lt;input type="hidden" name="id" value="&lt;?php echo $row-&gt;id;?&gt;" /&gt;
  &lt;h1&gt;&lt;?php echo $row-&gt;title;?&gt;&lt;/h1&gt;
  &lt;p&gt;&lt;?php echo $row-&gt;post;?&gt;&lt;/p&gt;
  &lt;/form&gt;
  
  
  
  &lt;/div&gt;
  </code></pre>