- Impact
- 4
Hi,
Im doing a gallery and so im tring to display some pictures from a folder on a page. At the moment this php code displays all thumbnail pictures from and folder then once clicked on go to the full size image from another folder. But basicly i want to be able to put the images in a table.
Heres what this does at the moment:
http://www.marriners.net/sam/images/images.php
i would like to be able to put the images in a table. Heres the site its going on, the boxes is how im looking to display the images.
http://www.marriners.net/sam/
Any ideas?
sorry i havn't explained this very well but im basicly wanting to know how i could display the pictures in a table rarther than one under each other.
Cheers ,
-ed
Im doing a gallery and so im tring to display some pictures from a folder on a page. At the moment this php code displays all thumbnail pictures from and folder then once clicked on go to the full size image from another folder. But basicly i want to be able to put the images in a table.
Heres what this does at the moment:
http://www.marriners.net/sam/images/images.php
PHP:
<?php
function RemoveExtension($strName)
{
$ext = strrchr($strName, '.');
if($ext !== false)
{
$strName = substr($strName, 0, -strlen($ext));
}
return $strName;
}
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "images.php" && $file != "Picasa.ini" && $file != "Thumbs.db" && $file != "abz n sam.png" && $file != "..") {
echo "<a href='$file'><img src='small/$file' width='100' height='85' border='0'/> </a><br><br>";
}
}
closedir($handle);
}
?>
i would like to be able to put the images in a table. Heres the site its going on, the boxes is how im looking to display the images.
http://www.marriners.net/sam/
Any ideas?
sorry i havn't explained this very well but im basicly wanting to know how i could display the pictures in a table rarther than one under each other.
Cheers ,
-ed
Last edited:






