I am designing a simple Blog, at the first I read 6 records (Image + Title) and at the rest of them I want to read 7 through 10. for 6 first I am using this code:
$sql = "SELECT * FROM blogcontents ORDER BY bid DESC";
$result = mysql_query($sql) or die("Error Query [" . $sql . "]");
$num_rows = mysql_num_rows($result);
for ($i = 0; $i < 6; $i++)
{
$row = mysql_fetch_array($result);
echo '<li class="navblog"><a href="blogpage.php?id= ' . $row['bid'] . '"><div class="blogwrap"><img class="img-thumbnail img-responsive bphoto" src="images/blog/' . $row['btimg'] . '" alt="Smiley face" height="200" width="300"><span class="sizeoftitle">' . $row['btitle'] . '</span></div></a></li>';
}
But I don't know how can I read from 7 through 10.