I cant seem to work out why I am getting a Parse error with the following script?
also with the while loop, how can i get the records to appear in a table with say 3 columns?
The error says the parse error is in line 37, which is the end of my document?
thanks
<? session_start(); ?>
<html>
<head>
<title>Blah</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<table width="435" height="325" border="0" cellpadding="0" cellspacing="0">
<tr>
<td> </td>
<td>
<?
$jcthumbs = "../contacts/".$_SESSION['jcglobal']."/thumbnails";
$jcimages = "../contacts/".$_SESSION['jcglobal']."/images";
$a = '0';
echo $jcthumbs;
$dir = opendir($jcthumbs);
while($entry = readdir($dir)) {
if($entry != "." || $entry != "..") {
echo "<img src='$jcthumbs/$entry'><br>";
echo "<a href='$jcthumbs/../images/$entry'><br>";
}
session_destroy();
?>
</td>
</tr>
</table>
</body>
</html>