PHP+MySQL实现输入页码跳转到指定页面功能示例
;?>
/ <?php echo $page_count;?> 页 记录:<?php echo $message_count;?> 条 </span></td>
<td width="58%" height="28" align="left" valign="middle"><span class="style1"> 分页:
<?php
if($_get['page']!=1)
{
echo "<a href=index.php?page=1>首页</a> ";
echo "<a href=index.php?page=".($_get['page']-1).">上一页</a> ";
}
if($_get['page']<$page_count)
{
echo "<a href=index.php?page=".($_get['page']+1).">下一页</a> ";
echo "<a href=index.php?page=".$page_count.">尾页</a>";
if($_get['page']<= $page_count and $_get['page']>0)
{
echo "<a href=index.php?page=".$_get['page']."></a>";
}
}
?>
<input name="page" type="text" size="3">
<input type="hidden" name="pages" value="<?php echo $page_count;?>">
<input type="submit" name="submit" value="跳转">
</span> </td>
</tr>
</table>
</form>
</body>
</html>
如对本文有疑问,
点击进行留言回复!!
相关文章:
-
-
-
网安追踪流程
1.不用代理网民发帖流程:发帖人 → ISP → 服务器托管商 → 服务器网警追踪流程:网监 → 服务器IP →...
[阅读全文]
-
-
-
HTTP状态码大全
转自:https://www.cnblogs.com/lxinxuan/archive/2009/10/22/1...
[阅读全文]
-
-
-
-
-
网友评论