PHP paging code, suitable for use in the classification list

time:14-03-24 forum:PHP tools and code
 
[code] $page=isset ($_GET.#91;'page'.#93;)? Intval ($_GET.#91;'page'.#93;): 1;
$num=20;

); L=200;
/ / / / / / / / > $pagenum=ceil ($total/$num);
/ / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / / > If ($page.gt; $pagenum) If ($page.gt; $pagenum / > = = 0). >
[code]echo 'total'.$total.' records, 20 pages per page, a total of'.$pagenum.'pages page -.gt;';
/ / / / / / / / / / / / / / / / / > if ($pagenum.lt; =5). T; a href=list.php? Class=.quot;.$forum_id..Quot;.Amp; page=.quot;.$i..Quot;.html.gt; $i.lt; /a.gt;.Quot; tertiary; > > {/ > {/ > = {/ > = {/ > 5 Page address
$show= ($i! =$page)?.quot;.Lt; a href=list.php? Class=.quot;.$forum_id..Quot;.Amp. R / >}
}[/code]

}

prev:Flowers and flowers in Ji'nan next:Ji'nan: kitchen waste mostly enters garb...
post comment
Notice



approved   People in Shandong have gone through...   The teacher was red for the student'...   Sichuan leg free man wrote thousands...   The domain name stolen and retrieved...   "Silly" old lady Ding Ruiyun: promis...
rand   Super PHP rapid programmer   PHP regular expression summary   PHP probability operation function   PHP video tutorials LAMP brothers, o...   Regular regular expressions
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com