Novice simple PHP paging about problems, but don't know why not paging

Source: Internet
Author: User
Novice Simple PHP paging problem, but do not know why not paging?
PHP Code
  
  = $page _count) $page = $page _count; $select _limit = $page _size; $select _from = ($page-1) * $page _size. ', '; $pre _page = ($page = = 1)? 1: $page-1; $next _page= ($page = = $page _count)? $page _count: $page + 1; $pagenav. = "$page/$page _count page Total $rows records"; $pagenav. = "Home"; $pagenav. = "Previous page"; $pagenav. = "Next page"; $pagenav. = "Last"; $pagenav. = "Jump to\ n "; for ($i =1; $i <= $page _count; $i + +) {if ($i = = $page) $pagenav. = "$i \ n "; else $pagenav. = "$i \ n "; }} include ("conn.php"),/////////////////////////////uses the pager function to calculate the $select _from from which record to start the retrieval, $pagenav output paging navigation $rows = MySQL _num_rows (mysql_query ("SELECT * from Manager"); echo $rows;p ager ($rows, 2); $sql = "SELECT * from manager limit $select _from $select _limit"; echo $sql; $rst = mysql_query ($sql); while ($row =mysql_fetch_array ($rst)) {?>          
            
            
            
            
            
            
            
            
            
            
  


The specific pages are calculated, that is, click on the next page can not be page, very depressed

------Solution--------------------
Where are the variables to be used in the pager function $page assigned values?
  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.