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:
Stable Host
bluehost
InterServer
Visit us on Facebook
Member Spotlight
Bill B
Bill B
Issaquah, WA
Posts: 87
Joined: December 2001
Forum Statistics
Forums63
Topics37,575
Posts293,932
Members13,824
Most Online6,139
Sep 21st, 2024
Today's Statistics
Currently Online
Topics Created
Posts Made
Users Online
Birthdays
Top Posters
AllenAyres 21,079
JoshPet 10,369
LK 7,394
Lord Dexter 6,708
Gizmo 5,835
Greg Hard 4,625
Top Posters(30 Days)
Gizmo 1
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-2025 VNC Web Services

 
Powered by UBB.threads™ PHP Forum Software 8.0.1
(Snapshot build 20240918)