当前位置: 移动技术网 > IT编程>开发语言>PHP > PHP+MySQL实现输入页码跳转到指定页面功能示例

PHP+MySQL实现输入页码跳转到指定页面功能示例

2018年08月10日  | 移动技术网IT编程  | 我要评论
;?> / <?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>

如对本文有疑问, 点击进行留言回复!!

相关文章:

验证码:
移动技术网