Home > Backend Development > PHP Tutorial > php jquery分页解决思路

php jquery分页解决思路

WBOY
Release: 2016-06-13 13:17:15
Original
773 people have browsed it

php jquery分页
总是显示第一页

phpPage.php 代码




require_once('../appCom/com.php');

//PHP分页实例

//分页尺寸
$page_size=3;

//计算总行数
$total_records=GetArchivesSum();

//总页数
$total_page=ceil($total_records/$page_size);


$query="select * from dede_archives order by id asc limit 0,$page_size";
$dsql->Execute('me',$query);
$html='';

?>


    while ($row=$dsql->GetArray())
    {
    ?>
     
  • =$row["title"]?>


  • }
    ?>






Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template