Again cheeky ............ Paging ............ After the page jumps to the current page, the current page & nbsp; & lt ;? Php & nbsp; extract ($ _ REQUEST); & nbsp; $ pages = ceil ($ count/again cheeky ............ Paging ............ After the page jumps to the current page
Extract ($ _ REQUEST );
$ Pages = ceil ($ count/$ list_num );
Echo"
There are currently a total of ". $ count." records
Total ". $ pages." pages";
If ($ offset ){
$ Preoffset = $ offset-$ list_num;
Print"
Previous Page";}
Else {
Echo"
Previous Page";
}
$ Newoffset = $ offset + $ list_num;
If ($ pages! = 0) & ($ newoffset/$ list_num )! = $ Pages ))
{
Print ("
Next page");
}
Else {echo"
Next page";}
$ Pageno = ($ offset/$ list_num) + 1;
Echo"
The
Page
";
?>
Share:
------ Solution --------------------
You can adjust the extract ($ _ REQUEST) of 61 rows to 32 rows, or even put it in header. php or conn. php.
Otherwise, because $ offset is not assigned a value, if (empty ($ offset) is invariably set.