session_start(); ?>
$conn = connect(); $showrecs = 100; $pagerange = 10; $a = @$HTTP_GET_VARS["a"]; $recid = @$HTTP_GET_VARS["recid"]; $page = @$HTTP_GET_VARS["page"]; if (!isset($page)) $page = 1; switch ($a) { case "view": viewrec($recid); break; default: select(); break; } mysql_close($conn); ?> |
Table: query_1 |
Records shown: echo $startrec + 1 ?> - echo $reccount ?> of echo $count ?> |
echo $val ?> | } ?>|
echo $row["$val"] ?> | } ?>View |
catno | echo $row["catno"] ?> |
name1 | echo $row["name1"] ?> |
<< Prev | } ?> global $pagerange; if ($pagecount > 1) { if ($pagecount % $pagerange != 0) { $rangecount = intval($pagecount / $pagerange) + 1; } else { $rangecount = intval($pagecount / $pagerange); } for ($i = 1; $i < $rangecount + 1; $i++) { $startpage = (($i - 1) * $pagerange) + 1; $count = min($i * $pagerange, $pagecount); if ((($page >= $startpage) && ($page <= ($i * $pagerange)))) { for ($j = $startpage; $j < $count + 1; $j++) { if ($j == $page) { ?>echo $j ?> | } else { ?>echo $j ?> | } } } else { ?>echo $startpage ."..." .$count ?> | } } } ?> if ($page < $pagecount) { ?>Next >> | } ?>
Index Page | if ($recid > 0) { ?>Prior Record | } if ($recid < $count) { ?>Next Record | } ?>