How does this variable come about?

Source: Internet
Author: User
The following code in the IF (Isset ($_get[' n_page ')) {//Judging the current page number
Of N_pageWhere did it come from, I checked the fields that are not in the data table, how does it come about, is it a random definition of a thing?
 
 
  
 
 
  
 <title>Untitled Document</title>

Meeting Information Browsing

Pageexecute ($sqlview, $num, $c _page);//execute Pageexecute function $rst_view = $conn->execute ($sqlview); $record =count ($rst _ View->getrows ()); Gets the total number of records if ($record ==0) {echo]There are currently no records";} Else{?> EOF) {?> MoveNext (); }?>
Conference number Conference name Department Name Meeting Venue Date of meeting Host Present staff Record person 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 section AbsolutePage ();?> page/Altogether Lastpageno ();?> page atfirstpage ()) {//If the current page is not home?> "> Home AbsolutePage ()-1);?>" > Previous atlastpage ()) {//If the current page is not last?> AbsolutePage () + 1 );?> "> Next Lastpageno ());? > "> Last Click here to export the report >>>


Reply to discussion (solution)

Look at the value in the session, and which page is coming in.

This should be the paging page number parameter, like this
http://index.php?n_page=2,3,4 ...
When N_page is the first page, it is usually not possible to get parameters, so you need to determine whether $_get[' n_page ' is present or not, or the first page. If present, the contents of the corresponding page are displayed according to the value obtained.

Don't you have a statement like that?
"> Home
$_get[' N_page ' This is how it came about.

What is the value of the link passed through the page?
$_get value; The default is the first page.
There's a page in the back of you!

In fact, "> Home"
This involves the knowledge of URL values, when a link is passed to the address bar $_get[] array will intercept it, because the $_get[] array is a global variable array, specifically responsible for intercepting the value in the Address bar.
It is only a pity that we have not answered it 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.