//**************************************************************************** ////////////////////////// N P T C /////////////////////////// //***************************************************************************** ?>
UNIT | LOCATION IN UNIT | "; ////////////// Now let us start executing the query with variables $eu and $limit set at the top of the page/////////// $query=" SELECT * FROM e107_10most_wanted WHERE Active_id='yes' ORDER BY Stamp_id ASC limit $eu, $limit "; $result=mysql_query($query); echo mysql_error(); //////////////// Now we will display the returned records in side the rows of the table///////// while($noticia = mysql_fetch_array($result)) { $showimage="http://www.parkstamps.org/e107_plugins/10most_wanted/images/photo/$noticia[Image_id]"; if($bgcolor=='#f1f1f1'){$bgcolor='#ffffff';} else{$bgcolor='#f1f1f1';} echo "
$noticia[Text_id] | "; echo "
"; //// if our variable $back is equal to 0 or more then only we will display the link to move back //////// if($back >=0) { print "PREV"; } //////////////// Let us display the page links at center. We will not display the current page as a link /////////// echo " | "; $i=0; $l=1; for($i=0;$i < $nume;$i=$i+$limit){ if($i <> $eu){ echo " $l "; } else { echo "$l";} /// Current page is not displayed as link and given font color red $l=$l+1; } echo " | "; ///////////// If we are not in the last page then Next link will be displayed. Here we check that ///// if($this1 < $nume) { print "NEXT";} echo " |