thank you. I now have the following code:
<?php
echo "<table><tr>";
for($i=1; $i <= 20; $i++)
{
echo "<td>";
if ($handle = opendir('../../shared/files/')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
$break = pathinfo($file);
$b = $break['extension'];
switch (@$break[extension]) {
case 'bmp' :
echo 'A BMP<br>';
break;
case 'png' :
echo 'A PNG<br>';
break;
case 'doc' :
case 'docx' :
echo 'A DOC OR DOCX<br>';
break;
default:
echo 'FILE NOT RECOGNISED<br>';
}
}
}
closedir($handle);
}
echo "</td>";
if($i % 5 == 0)
echo "</tr><tr>";
}
echo "</tr></table>";
?>
But this is just doing the "a bmp" or whatever.. for every file.. in each cell, twenty times...
so.. i have twenty duplicate cells on four rows, with five columns. I dont quite understand this modules thing - i was wondering if you had any links to documentation on it so i can customise it.. or perhaps you could kindly help me 🙂😕🙂