vise billeder i rækker og kolonner
hey... ved ikk rigtig så meget om php. jeg har den her php kode der viser billeder fra en mappe...<?php
// Define the full path to your folder, shouldn't need changing
$path = "./";
// Open the folder
$dir_handle = @opendir($path) or die("Unable to open folder");
// Loop through the files
while (false !== ($file = readdir($dir_handle))) {
// Prevent this file itself being shown
// If you want it to not display any other files
// enter more of these
if($file == "index.php")
continue;
//Prevent folders showing
if($file == ".")
continue;
if($file == "..")
continue;
// Display the results
echo "<img src='$file' alt='$file'><br />";
}
// Close it
closedir($dir_handle);
?>
kunne godt tænke mig at koden viste billederne i en tabel som den her:
<table border="1" bordercolor="" width="" bgcolor="">
<tr>
<td> billede</td>
<td> billede</td>
</tr>
<tr>
<td> billede</td>
<td> billede</td>
</tr>
</table>
takker (:
