Below is a code in which title of post is displayed as link for opening the whole post, it works fine when using this way
but now I have made some changes in my code and for that changes to take effect I have to call title by row like this
so I want to know he right way in which I can make the title of post a link means I want to add
to
Code:
<?php // some code to get title and other stuff from db echo "<h2><a href='blog.php?blogId=" . $row['blogs_id'] . "'>$title</a></h2>"; ?>
Code:
<h2><?php echo $row['title']; ?></h2>
Code:
<a href='blog.php?blogId=" . $row['blogs_id'] . "'
Code:
<h2><?php echo $row['title']; ?></h2>