Hello,
I found this this script to manage my foto-webpage. But I always get an error:
Parse error: parse error, unexpected T_STRING in /.../photo.php on line 9
On line 9 is written: <? if (IsSet($ID)) {
The full code of the page (is saved as .php file) with script in it:
<html>
<head>
<title>Scouts Ruusbroec</title>
</head>
<body>
<h3>Leidingsfoto's</h3>
<?_
if_(!IsSet($ID)){
for($i=1;;_$i++)_{
____$dir_=_"foto//".$i."//";
____$exists_=_$dir."1.jpg";
____if_(file_exists($exists))_{
________$txt_=_$dir."comment.txt";
________if_(file_exists($txt))_{_
____________$comment_=_file($txt);
________}_else_{
____________$comment_=_"geen titel";
________}
________echo_"<a_href=showfoto.php?ID=$i>$comment[0]</a><br>";
____}_else_{
________break;
____}
}
}_else_{
$dir_=_"foto/".$ID."/";
$txt_=_"foto/".$ID."/comment.txt";
____
if_(file_exists($txt))_{_
_____$comment_=_file($txt);
}
echo_"<h1>$comment[0]</H1>";
echo_"<table border=1>";
for($i=1;;)_{
____echo_"<tr>";
____for($j=1;$j!=5;$i++,$j++)_{
________echo_"<td>";
________$jpg_=_$dir."tumb/".$i.".jpg";
________if_(file_exists($jpg))_{
____________echo_"<a_href=foto/$ID/$i.jpg><img_src=$jpg></a><br><i>$comment[$i]</i>";
________}_else_{
____________$break_=_1;
________}
________echo_"</td>";
____}
____echo_"</tr>";
____if_($break_==_1)_{
________break;
____}
}_
echo_"</table>";
}
?>
</body>
</html>
Thanx in advance for the help!
Greetings,