How does this variable come about?

Source: Internet
Author: User
How does this variable come about?
This post was last edited by lyhjc_2015 on 2014-11-21 09:02:41


In the following code 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?
 Session_Start ();
Include_once ("conn/conn.php");
?>





<title>Untitled Document</title>



Meeting Information Browsing



$sqlview = "SELECT * from Tb_meeting_info";
$num = 2; Maximum number of records displayed per page
if (Isset ($_get[' n_page ')) {//Judging the current page number
$c _page = $_get[' n_page '); Assigns a $n_page to a variable $c_apge
}else{
$c _page = 1; Initialize variable $c_page
}
$l _rst = $conn 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{
?>

































while (! $l _rst->eof) {?> $l _rst->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 absolutepage ();?> page/Altogether Lastpageno ();?> page


if (! $l _rst-Atfirstpage ()) {//If the current page is not home
?>




"> Home
AbsolutePage ()-1);?> "> Prev

}
if (! $l _rst-Atlastpage ()) {//If the current page is not last
?>

AbsolutePage () + 1);?> "> next page
Lastpageno ());? > "> Last


}
?> }
?>
Click here to export the report >>>






------to solve the idea----------------------
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.