Php simple paging program 15th page. [Code] htmlheadmetahttp-equivContent-Typectitle user information summary titlestyletypetextcss! -- Body, td, th {font-size: 14px;}. STYLE1 {font-size: 16px; color: #666666;} -- s [code]
User Information Summary
######################################## #####################
########### Connect to a database ################
######################################## #####################
$ Db = mysql_connect ("192.168.0.2", "root", "goalwe608"); // database, user name, password
Mysql_select_db ("86pos", $ db); // Database
############ Paging ############
// Set the number of records displayed on each page
$ Pagesize = 5;
// Retrieve the total number of records
$ Res = mysql_query ("select count (id) from buyer", $ db );
$ Myrow = mysql_fetch_array ($ res );
$ Numrows = $ myrow [0];
// Calculate the total number of pages
$ Pages = intval ($ numrows/$ pagesize );
If ($ numrows % $ pagesize)
$ Pages ++;
// Determine whether the page number is set or not. if not, the page number is defined as the homepage.
If (! Isset ($ page ))
$ Page = 1;
// Prevent malicious access
If ($ _ GET
Export html head metahttp-equiv = "Content-Type" c title user information summary/title styletype = "text/css "! -- Body, td, th {font-size: 14px;}. STYLE1 {font-size: 16px; color: #666666 ;}--/s...