hi i use this code
<?php
echo "<table width=\"100%\" border=\"1\">";
echo "<tr>";
$col = 1;
foreach(array_chunk($files,1)as $file){
if ($col == 3) {
echo "<tr>";
$col = 1;
} else {
$col++;
}
echo"<td>";
echo $file[0] . "<br />";
echo "</td>";
if ($col == 3) {
echo "</tr>";
}
}
echo "</tr>";
echo "</table>";
?>
to make a table with 3 cols and the amount of rows as array elements
it SHOULD do that but it dosent
it out puts a table like this
FILE FILE
FILE FILE FILE
FILE FILE FILE
FILE FILE FILE
ans so on...
what is wrong that row1col3 isnt turning out
THANKS heaps
davo