Using a PHP Counter and want to use mutiples of 3
<p>So I've got this code here</p>

<pre><code>&lt;?php
$COUNT = 0;
if ($handle = opendir('.')) {
while (false !== ($entry = readdir($handle))) {
    if ($entry != "." &amp;&amp; $entry != ".." &amp; $count % 3 == 0) {
        echo "&lt;td&gt;&lt;a href='$entry'&gt;$entry&lt;/a&gt;&lt;/td&gt;";
        echo $Count;
        $Count++;

    }
    else {echo "&lt;tr&gt;&lt;td&gt;&lt;a href='$entry'&gt;$entry&lt;/a&gt;&lt;/td&gt;&lt;tr&gt;";
    echo $Count;
    $Count++;
    }
}
closedir($handle);
}
?&gt;
</code></pre>

<p>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</p>
