How does this variable come from?

Source: Internet
Author: User
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 {?>
 
  EOF) {?> 
    Movenext () ;}?> 
  
Meeting No. Meeting name Department name Meeting place Meeting Date Host Attendees Recorder Meeting Summary View details
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');">

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.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.