\n
\n"; } elseif(intval($_REQUEST['locid']) <= 0) { echo "\n\n\n\n\n
\n"; $rc = mysql_num_rows(mysql_query("select * from `locations` where `regid`='$regid'")); if($start > 0) { $prev = $start - $limit; if($prev < 0) $prev = 0; $st = "[ << Start ] "; $prev = "[ < Previous $limit ] "; } if($start < $rc - $limit) { $next = $start + $limit; $last = $rc - $limit; $next = "[ Next $limit > ] "; $end = "[ End >> ]"; } echo "
$st
$end
\n"; echo "
$prev
$next
\n"; } ?>