Home > Backend Development > PHP Tutorial > php分页类如何写啊

php分页类如何写啊

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 12:06:27
Original
944 people have browsed it

php分页类怎么写啊?
这个是我前端代码 ,怎么再写一个分类页,通过前段代码调用分类页类实现分页,另外前端代码要添加些什么? 求大神帮忙 万分感谢!

<br /><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><br /><html xmlns="http://www.w3.org/1999/xhtml"><br /><head><br /><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><br /><title>无标题文档</title><br /></head><br /><body><br /><?php<br />	require_once('config.php');<br />    if(isset($_SESSION['admin'])){<br />		//echo session_id();<br />        echo "欢迎光临,".$_SESSION['admin']['1']."! | ";<br />		echo "<a href='logout.php'>退出</a>";<br />    }else{<br />		echo "<a href='login.php'>登录</a>";<br />		die("<--权限不足请");<br />	}  <br />?><br /><table width="666" height="63" border="1"><br />  <tr><br />    <td width="537" height="23">标题</td><br />    <td width="71">功能</td><br />  </tr><br /><?php<br />	$sql="SELECT * FROM content";<br />	$x=mysql_query($sql);<br />	//$rs=mysql_fetch_row($x);<br />	//var_dump($rs);<br />	while($rs=mysql_fetch_row($x)){<br />?><br />  <tr><br />    <td><a href='content.php?id=<?php echo $rs['0']?>'><?php echo $rs['1']?></a></td><br />    <td>编辑|删除</td><br />  </tr><br /><?php<br />} <br />?><br /><br /></table><br /></body><br /></html><br />
Copy after login

------解决思路----------------------
参考:http://www.cnblogs.com/mbailing/archive/2013/08/02/3232646.html
------解决思路----------------------
http://blog.sina.com.cn/s/blog_49cc837a0100kj0v.html
这个应该看起来舒服点
------解决思路----------------------
看看我这个 http://bbs.csdn.net/topics/390192431

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