- Impact
- 19
hey
i duno y its not working
check it out for me please
it gives me the error
i duno y its not working
check it out for me please
PHP:
<?php
$images = "gallery/thumb";
$big = "gallery";
$cols = "2";
if ($handle = opendir($images)) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != ".." && $file != rtrim($big,"/")) {
$files[] = $file;
}
}
closedir($handle);
}
$colCtr = 0;
echo '<table width="100%" cellspacing="3"><tr>';
foreach($files as $file)
{
if($colCtr %$cols == 0)
echo '</tr><tr><td colspan="2"><hr /></td></tr><tr>';
echo '<td align="center"><a href="' . $images . $big . $file . '"><img src="' . $images . $file . '" /></a></td>';
$colCtr++;
}
echo '</table>' . "\r\n";
?>
PHP:
Parse error: parse error, unexpected T_VARIABLE in F:\InetPub\wwwroot\schools\LauraScrds\thumbnail.php on line 2




