So I'm creating a webpage where I call into my database table blog_post. From there I'm accessing the top 10 most recent entries from the table ordered by their post_id. What I'm trying to do is make a unique link to the page /Blogpost.php. However when I execute this code all that displays is the header 'Recent Posts'. I know it has nothing to do with the connection because other php segments execute appropriately. However, Im struggling to get the links to just appear.
<div id="content">
        <div id="sidebarblog">
          <h1>Recent Posts</h1>
          <p id=blglst><?php
              $query = "SELECT * FROM (SELECT * FROM blog_post ORDER BY post_id DESC LIMIT 10) sub ORDER BY post_id DESC";
              $results = mysqli_query($db, $query);
              while ($row = mysql_fetch_array($results)){
                $title = $row['title'];
                $id=$row['post_id'];
                echo ("<a href='http://domain/Blogpost.php?id=" . $id . "'>" . $title . "</a><br />");
              }
            ?></p>
        </div>
    </div>
 
    