[Code]
<title>User Information</title>
#############################################################
########### Connecting the 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 to display per page
$pagesize = 5;
Total Records obtained
$res =mysql_query ("SELECT count (ID) from buyer", $db);
$myrow = Mysql_fetch_array ($res);
$numrows = $myrow [0];
Calculate Total Pages
$pages =intval ($numrows/$pagesize);
if ($numrows% $pagesize)
$pages + +;
Determine whether pages are set or not, as defined as the home page
if (!isset ($page))
$page = 1;
Prevent malicious access
if ($_get
Current 1/5 page 12345 next page
The above describes the Pimchanok Leuwisetpaibul php simple page 1th/5 page, including Pimchanok Leuwisetpaibul aspects of the content, I hope that the PHP tutorial interested in a friend helpful.