我正在设计一个简单的博客,首先我读了6条记录(图片+标题),其他人我想读7到10. 为6第一我使用此代码:MySQL选择区域
$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>';
}
但我不知道我怎样才能从7到10
请更新到新的MySQL驱动程序 - “mysqli”。 [见这里。](http://stackoverflow.com/questions/548986/mysql-vs-mysqli-when-using-php)它在PHP 5.5中被弃用,并在7.0中被删除 –