This one doesn't work for me. I get the following error message:
code:
Parse error: parse error, unexpected T_ELSE in /home/virtual/site1/fst/var/www/html/ubb/viewmessages.php on line 85
Taking a look at the section around line 85, this is what I get:
code:
// -----------------------------------------------------------------------
// Now we calculate which messages to grab for this page. We want to grab
// one from the previous page and one from the next page so we know what
// the previous and next messages will be
if (!($page > 0)) {
$Totalgrab = $PostsPer + 1;
$Posts = $PostsPer + 1;
}
else {
$Startat = $page * $PostsPer;
$Posts = $PostsPer + 1;
}
else {
$Startat = $page * $PostsPer;
$Posts = $PostsPer + 1;
$Totalgrab = "$Startat, $Posts";
}
As you can see, there are two succeeding else statements. Shouldn't there be an if statement in there somewhere?