时间:2021-07-01 10:21:17 帮助过:1人阅读
'.mysqli_connect_error($conn)); // mysqli_set_charset($conn, "utf8"); if (isset($_GET['page'])){ $_page=$_GET['page']; echo $_page; if(empty($_page)){ $_page=1; } }else { $_page=1; } $_pagesize=1; $_pagenum=(page-1)*pagesize; $sql="SELECT tg_id FROM tg_user"; $result1=mysqli_query($conn,$sql)or die(mysqli_error($conn)); $_num=mysqli_num_rows($result1); $_pageabsolute=ceil($_num/$_pagesize);// echo" $_pageabsolute
"; $query="SELECT tg_id,tg_username,tg_reg_time FROM tg_user ORDER BY tg_reg_time DESC LIMIT $_pagenum,$_pagesize"; $result=mysqli_query($conn, $query); while ($row=mysqli_fetch_array($result)) { echo "{$row['tg_id']} ---{$row['tg_username']} ---{$row['tg_reg_time']}
"; } mysqli_free_result($result1); mysqli_free_result($result); mysqli_close($conn); ?>
无标题文档
$_pagenum=( $page-1)* $pagesize;
粗心大意害死人!
错误信息明确的指出了错误的现象和位置,为什么视而不见呢?
$_pagenum=( $page-1)* $pagesize;
粗心大意害死人!
错误信息明确的指出了错误的现象和位置,为什么视而不见呢?
该死的zend studio居然也不给报个错