Well, after a few days, I am still confused. I only want to display one record per page, and in my example my sql $result is returning 3 rows.
Here is what I have:
$numofpages = ($totalrows / 1);
for($i = 1; $i <= $numofpages; $i++) {
if($i == $page){
echo($i." ");
}
else {
echo("<a href=\"$PHP_SELF?&page=$i\">$i</a> ");
}
}
if(($totalrows % $recordLimit) != 0) {
if($i == $page){
echo($i." ");
}
else {
echo("<a href=\"$PHP_SELF.php?&page=$i\">$i</a> ");
}
}
Basically, I am just lost as to this whole register_globals thing. This displays the numbers 1,2,3 at the bottom, but clicking them does not change the display.
Or is the problem further up where I get my $variables out of my $results?
Help