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

php jquery分页解决思路

WBOY
WBOYOriginal
2016-06-13 13:17:15749browse

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"]?>


  • }
    ?>






Statement:
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