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");
}
?>
| Title |
Function |
$sql = "SELECT * from Content"; $x =mysql_query ($sql);//$rs =mysql_fetch_row ($x);//var_dump ($rs); while ($rs =mysql_fetch _row ($x)) {?>
| ' > |
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.