PHP实现对mysql数据库内容分页显示_MySQL
程序员文章站
2022-05-13 23:06:29
...
"; echo ""; echo " "; while ($row=mysql_fetch_array($result)) { echo "id "; echo "name "; echo "age "; echo "grade"; echo " "; echo " "; } echo ""; if ($page != 1) { //页数不等于1 ?> 上一页 下一页$row[0] "; echo "$row[1] "; echo "$row[2] "; echo "$row[3] "; //显示数据库的内容 echo "
运行结果: