PHP实现对mysql数据库内容分页显示
程序员文章站
2022-04-09 10:25:45
...
";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 "
运行结果:
下一篇: 4种php页面参数传递实例详解
推荐阅读