How to write a PHP paging class

Source: Internet
Author: User
How to write the PHP paging class?
This is my front-end code, how to write a category page, the previous code calls the category page class implementation paging, and the other front-end code to add something? Thank you very much for asking God for help!





Untitled Document


Require_once (' config.php ');
if (isset ($_session[' admin ')) {
Echo session_id ();
echo "Welcome,". $_session[' admin ' [' 1 ']. "! |";
echo "Exit";
}else{
echo "Login";
Die ("<--permission Insufficient");
}
?>


















$sql = "SELECT * from Content"; $x =mysql_query ($sql);//$rs =mysql_fetch_row ($x);//var_dump ($rs); while ($rs =mysql_fetch _row ($x)) {?> }?>
Title Function
' > Edit | delete




------to solve the idea----------------------
Reference: http://www.cnblogs.com/mbailing/archive/2013/08/02/3232646.html
------to solve the idea----------------------
Http://blog.sina.com.cn/s/blog_49cc837a0100kj0v.html
This should look comfortable.
------to solve the idea----------------------
Look at me, this http://bbs.csdn.net/topics/390192431.
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.