I've got this code here
<?php
$COUNT = 0;
if ($handle = opendir('.')) {
while (false !== ($entry = readdir($handle))) {
if ($entry != "." && $entry != ".." & $count % 3 == 0) {
echo "<td><a href='$entry'>$entry</a></td>";
echo $Count;
$Count++;
}
else {echo "<tr><td><a href='$entry'>$entry</a></td><tr>";
echo $Count;
$Count++;
}
}
closedir($handle);
}
?>
and I just can't seem to get it to work. I want a new table row every time the counter is a mutiple of 3.