NameSilo

Put my images in a table

Spaceship Spaceship
Watch

edmarriner

Established Member
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



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:
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
.US domains.US domains
Your link dosnt work, it goes to "localhost"
 
0
•••
0
•••
0
•••
Dynadot — .com Registration $8.99Dynadot — .com Registration $8.99

We're social

Unstoppable Domains
Domain Recover
DomainEasy — Payment Flexibility
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back