How does this variable come from if (isset ($ _ GET ['n' _ page]) in the following code) {// judge the current page number
Of
N_pageWhere did it come from? I checked out how it was not a field in a data table. Is it a casual definition?
Untitled DocumentConference information browsing
PageExecute ($ sqlview, $ num, $ c_page); // execute the pageExecute function $ rst_view = $ conn-> execute ($ sqlview ); $ record = count ($ rst_view-> GetRows (); // obtain the total number of records if ($ record = 0) {echo "no records currently ";} else {?>
Meeting No. |
Meeting name |
Department name |
Meeting place |
Meeting Date |
Host |
Attendees |
Recorder |
Meeting Summary |
View details |
EOF) {?>
Fields [0];?> |
Fields [1];?> |
Fields [2];?> |
Fields [3];?> |
Fields [4];?> |
Fields [5];?> |
Fields [6];?> |
Fields [7];?> |
Fields [8];?> |
Fields [0];?> ', '', 'Height = 720, width = 1004, scrollbars = no');"> |
Movenext () ;}?>
Current is AbsolutePage ();?> Page/total LastPageNo ();?> Page AtfirstPage () {// if the current page is not the homepage?> "> Homepage absolutePage ()-1);?> "> Previous Page AtlastPage () {// if the current page is not the last page?> AbsolutePage () + 1);?> "> Next Page: LastPageNo ();?> "> Last Page |
Click here to export the report >>> |
|
Reply to discussion (solution)
Check the value in the session and which page is passed in.
This should be the page number parameter, similar to this
Http://index.php? N_page = 2, 3, 4 ......
When n_page is the first page, the parameter is usually not obtained. Therefore, you need to determine whether $ _ GET ['n' _ page] exists. if it does not exist, it is the first page. If yes, the corresponding page content is displayed based on the obtained value.
Do you have such a statement?
"> Homepage
$ _ GET ['n' _ page '].
What is the value passed through the page link?
$ _ GET value. if the value is not obtained, the default value is the first page.
There are all the pages behind you.
It is actually from the "> homepage
This involves url-based value passing. when a link is uploaded to the address bar, the $ _ GET [] array intercepts it, because the $ _ GET [] array is a global variable array, intercepted values in the address bar.
Unfortunately, no one answered correctly.