parsing problem
| From: | Geocrawler.com | Date: | Sun, 15 Aug 1999 00:58:30 +0000 |
| Subject: | parsing problem | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-9860@lists.php.net to get a copy of this message | ||
This message was sent from Geocrawler.com by "Lee" <dumshmuck@aol.com>
Be sure to reply to that address.
can anyone help me out with this I cant find the parsing error on line 16..
<html>
<head>
<title>TSE</title>
<body>
<?
require $event . ".txt";
function main($picnum,$limit){
for (; $picnum <= $limit; $picnum++){
global $folder , $event , $caption ;
echo "<img src=" . $folder . "/" . $event . $picnum .
".jpg><br>" . $caption[$picnum - 1] . "<br><br>";
}
}
var $numPages = $pics / 4;
var $remain = $pics % 4;
if ($remain >= 1){
$numPages++;
};
echo "<center><h1>" . $eventName .
"</h1></center><br><br>";
if ($numPages - $pageNum == 0){
main($pageNum * 4 - 3 , $pageNum * 4 - 4 + $remain);
echo "<a href=generator.php3?event=" . $event . "&pageNum=" . $pageNum-1
. ">[Previous Set]</a><a href=past.html>[Back to Past Events]</a>";
};
elseif ($pageNum == 1) {
main(1 , 4);
echo "<a href=generator.php3?event=" . $event . "&pageNum=" . $pageNum+1
. ">[Next Set]</a>"
};
else {
main($pageNum * 4 - 3 , $pageNum * 4);
echo "<a href=generator.php3?event=" . $event . "&pageNum=" . $pageNum+1
. ">[Next Set]</a><a href=generator.php3?event=" . $event .
"&pageNum=" . $pageNum-1 . ">[Previous Set]</a>";
};
require bottom.txt;
?>
</body>
</html>
Geocrawler.com - The Knowledge Archive