Forum Moderators: coopster
//calculate button size
$width=100/count($buttons);
while(list($name,$url)=each($buttons))
{
$this->DisplayButton($width, $name, $url,
!$this->IsURLCurrentPage($url));
}
echo "</tr>\n";
echo "</table>\n";
}
Amy
I am just wondering if this is related to file extension,
If you are getting a PHP error message, that means that the script is being processed by PHP. I would put my money with IamStang, since the code looks fine, there's probably something (not necessarily a semi-colon) missing further up.
In fact, if I had to put money on it, I would guess that you have a mismatched quote further up in your script. The first quote of the line in question is thus closing the quoted string rather than opening a new one, and that causes things to blow up. Just a guess.