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{
?>
Conference number |
Conference name |
Department Name |
Meeting Venue |
Date of meeting |
Host |
Present staff |
Record person |
Meeting Summary |
View Details |
while (! $l _rst->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 '); > |
$l _rst->movenext ();}?>
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.