This code tells website visitors how many articles are available for the month -
$result = @mysql_query("SELECT COUNT(*) AS t FROM junestu");
while( $row = mysql_fetch_array($result))
echo 'We have <font color="#FF9933"><b>' . $row["t"] . ' </b> </font> bulletins for June.';
And this code sets the number of pages for the next and previous functions -
echo '<div class="Next">';
$next = $_GET['id'] + 1;
$previous = $_GET['id'] - 1;
$total = 5;
How can I use the result of the top function to set the $total in the next/previous function, please, Experts?
$result = @mysql_query("SELECT COUNT(*) AS t FROM junestu");
while( $row = mysql_fetch_array($result))
echo 'We have <font color="#FF9933"><b>' . $row["t"] . ' </b> </font> bulletins for June.';
And this code sets the number of pages for the next and previous functions -
echo '<div class="Next">';
$next = $_GET['id'] + 1;
$previous = $_GET['id'] - 1;
$total = 5;
How can I use the result of the top function to set the $total in the next/previous function, please, Experts?