Php simple paging project_php instance

Source: Internet
Author: User
Php paging simple php simple paging program _ php instance

The code is as follows:

    
   User Information Summary        

$ Pages) $ page = $ pages; if ($ _ GET <1) $ page = 1; if (! Ereg ("^ [0-9] + $", $ _ GET) $ page = 1; if ($ _ GET = "") $ page = 1; // calculate the record offset $ offset = $ pagesize * ($ page-1); // Retrieve record $ res = mysql_query ("select username, pass, mail, add_time from buyer order by add_time limit $ offset, $ pagesize ", $ db); // if ($ myrow = mysql_fetch_array ($ res )) {$ I = 0;?>

User information management

-------------------------------------------------------------

Total ". $ pages." page (". $ page."/". $ pages .")
"; // Display the number of page shards for ($ I = 1; $ I <$ page; $ I ++) echo" no ". $ I. "page"; echo "no ". $ page. "page"; for ($ I = $ page + 1; $ I <= $ pages; $ I ++) echo "no ". $ I. "page"; echo"
"; // Display to page echo" "; echo"

";}// Display the total number of pages echo"";?>

Serial Number

User name

Password

Email

Time added

The above is the content of php simple paging program _ php instance. For more information, see PHP Chinese network (www.php1.cn )!

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.