Hi Again,
So, what I'm doing is reading the files in a directory, pulling the ones that represent a thumbnail image into an array, and then I wish to place those filenames in a table. Here is what I have so far :
<?php
$dirPath = opendir(´images/march´);
while ($file = readdir($dirPath)) {
if ($file != "." && $file != ".." && (ereg(".html$", $file) != 1) && (ereg("DCP", $file) != 1)) {
$thmbPics = ($file);
foreach ($thmbPics) {
echo "<CENTER>\n";
echo "<TABLE BORDER=1, CELLSPACING=1 CELLPADDING=1>\n";
echo "<TR>\n";
echo "<TD>\n";
printf("<IMG SRC=\"images/march/%s\"><BR>\n", $file);
echo "</TD>\n";
echo "<TR>\n";
echo "<TD>\n";
printf("<IMG SRC=\"images/march/%s\"><BR>\n", $file);
echo "</TD>\n";
echo "</TR>\n";
echo "</TABLE>\n";
echo "</CENTER>";
}
}
}
?>
The $thmbPics is the array that I hold the filenames in. I'm confused on how to do a while or foreach statement that will get the value out of the array and into the table.
Thanks!