Is it possible to have stuff echo'd based on the address in the address bar of your browser ?
So like...
if address in the address bar = index.php?page=21
then echo the below
echo "Page " . number_format($page) . " of " . number_format($totalpages) . "<br />";
$starting_user = $i = ($page - 1) * $h + 1;
echo "Results: " . number_format($starting_user) . " to " . number_format(min($starting_user+$h-1, $num)) . "<br />";
if ($page > 1) {
echo ' <a href="index.php?page=21" title="First Page">First</a> ';
echo '<a href="index.php?page=21;p='.$prevpage.'" title="Previous Page">Previous</a>';
}
else {
echo ' First ';
echo 'Previous';
}
echo ' ';
if ($page < $totalpages) {
echo '<a href="index.php?page=21;p='.$nextpage.'" title="Next Page">Next</a> ';
echo ' <a href="index.php?page=21;p='.$totalpages.'" title="Last Page">Last</a> ';
}
else {
echo 'Next';
echo ' Last ';
}
if address in the address bar = index.php?page=21;l='.$get_letters.'
then echo the below
echo "Page " . number_format($page) . " of " . number_format($totalpages) . "<br />";
$starting_user = $i = ($page - 1) * $h + 1;
echo "Results: " . number_format($starting_user) . " to " . number_format(min($starting_user+$h-1, $num)) . "<br />";
if ($page > 1) {
echo ' <a href="index.php?page=21;l='.$get_letters.'" title="First Page">First</a> ';
echo '<a href="index.php?page=21;l='.$get_letters.';p='.$prevpage.'" title="Previous Page">Previous</a>';
}
else {
echo ' First ';
echo 'Previous';
}
echo ' ';
if ($page < $totalpages) {
echo '<a href="index.php?page=21;l='.$get_letters.';p='.$nextpage.'" title="Next Page">Next</a> ';
echo ' <a href="index.php?page=21;l='.$get_letters.';p='.$totalpages.'" title="Last Page">Last</a> ';
}
else {
echo 'Next';
echo ' Last ';
}
if address in the address bar = index.php?page=21;n='.$get_numbers.'
then echo the below
echo "Page " . number_format($page) . " of " . number_format($totalpages) . "<br />";
$starting_user = $i = ($page - 1) * $h + 1;
echo "Results: " . number_format($starting_user) . " to " . number_format(min($starting_user+$h-1, $num)) . "<br />";
if ($page > 1) {
echo ' <a href="index.php?page=21;n='.$get_numbers.'" title="First Page">First</a> ';
echo '<a href="index.php?page=21;n='.$get_numbers.';p='.$prevpage.'" title="Previous Page">Previous</a>';
}
else {
echo ' First ';
echo 'Previous';
}
echo ' ';
if ($page < $totalpages) {
echo '<a href="index.php?page=21;n='.$get_numbers.';p='.$nextpage.'" title="Next Page">Next</a> ';
echo ' <a href="index.php?page=21;n='.$get_numbers.';p='.$totalpages.'" title="Last Page">Last</a> ';
}
else {
echo 'Next';
echo ' Last ';
}