if(!$_GET['start']) $start = 1; else $start = $_GET['start']; ?>
"><-prev | if($start!=1) { ?> 1 | } else echo "1 | "; $cresult = mysql_query("select count(*) as cnt from logging"); $crow = mysql_fetch_object($cresult); for($i = 2; $i < (($crow->cnt-1)/25);$i++) { if(!($i<$start-5) && !($i > $start+5)) { if($start == $i) echo $i." | "; else echo "$i | "; } } ?> echo (int)(($crow->cnt)/25) ?> | next-> | ||
Time | User | Message |
echo $row->time ?> | echo $row->user ?> | echo $row->msg ?> |
"><-prev | if($start!=1) { ?> 1 | } else echo "1 | "; $cresult = mysql_query("select count(*) as cnt from logging"); $crow = mysql_fetch_object($cresult); for($i = 2; $i < (($crow->cnt-1)/25);$i++) { if(!($i<$start-5) && !($i > $start+5)) { if($start == $i) echo $i." | "; else echo "$i | "; } } ?> echo (int)(($crow->cnt)/25) ?> | next-> |