Previous Thread
Next Thread
Print Thread
Rate Thread
c0bra #221970 08/12/2002 7:32 PM
Joined: Jan 2002
Posts: 218
Enthusiast
Enthusiast
Offline
Joined: Jan 2002
Posts: 218
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?

Sponsored Links
Entire Thread
Subject Posted By Posted
PM-Limit 1.0beta Gardener 08/04/2002 5:33 PM
Re: PM-Limit 1.0beta AllenAyres 08/04/2002 9:29 PM
Re: PM-Limit 1.0beta Gardener 08/05/2002 10:51 AM
Re: PM-Limit 1.0beta WrÅith 08/13/2002 2:32 AM
Re: PM-Limit 1.0beta Gardener 08/13/2002 3:10 AM

Link Copied to Clipboard
Donate Today!
Donate via PayPal

Donate to UBBDev today to help aid in Operational, Server and Script Maintenance, and Development costs.

Please also see our parent organization VNC Web Services if you're in the need of a new UBB.threads Install or Upgrade, Site/Server Migrations, or Security and Coding Services.
Recommended Hosts
We have personally worked with and recommend the following Web Hosts:
Shock Hosting
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Zarzal
Zarzal
Berlin, Germany
Posts: 808
Joined: July 2001
Forum Statistics
Forums63
Topics37,583
Posts293,955
Members13,825
Most Online151,614
Nov 14th, 2025
Today's Statistics
Currently Online 33873
Topics Created 0
Posts Made 0
Users Online 1
Birthdays 23
Top Posters
AllenAyres 21,080
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,834
Greg Hard 4,625
Top Posters(30 Days)
Top Likes Received
isaac 82
Gizmo 20
Brett 7
WebGuy 2
Morgan 2
Top Likes Received (30 Days)
None yet
The UBB.Developers Network (UBB.Dev/Threads.Dev) is ©2000-2026 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.1.0
(Snapshot build 20260108)