NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page Put my images in a table

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 11-01-2006, 02:06 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
edmarriner's Avatar
Join Date: Apr 2005
Location: England :D
Posts: 834
edmarriner is a jewel in the roughedmarriner is a jewel in the roughedmarriner is a jewel in the rough
 



Put my images in a table


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 Code:
<?php
function RemoveExtension($strName

$ext strrchr($strName'.'); 

if(
$ext !== false

$strName substr($strName0, -strlen($ext)); 
????: NamePros.com http://www.namepros.com/programming/253266-put-my-images-in-a-table.html

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 != "..") {
????: NamePros.com http://www.namepros.com/showthread.php?t=253266

    
       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
__________________
Leeds united football club


Last edited by edmarriner; 11-01-2006 at 03:29 PM.
edmarriner is offline  
Old 11-01-2006, 02:48 PM   #2 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




Your link dosnt work, it goes to "localhost"
Barrucadu is offline  
Old 11-01-2006, 03:28 PM THREAD STARTER               #3 (permalink)
NamePros Regular
 
edmarriner's Avatar
Join Date: Apr 2005
Location: England :D
Posts: 834
edmarriner is a jewel in the roughedmarriner is a jewel in the roughedmarriner is a jewel in the rough
 



lol, sorry about that, im a very tired, the links are:

http://www.marriners.net/sam/images/images.php

and

http://www.marriners.net/sam/

thanks,

-ed
__________________
Leeds united football club


edmarriner is offline  
Old 11-01-2006, 04:19 PM   #4 (permalink)
Domains my Dominion
 
sdsinc's Avatar
Join Date: Aug 2005
Location: Web 1.0
Posts: 9,552
sdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatnesssdsinc Has achieved greatness
 


Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer Animal Rescue Wildlife
I could post some code, however you may want to consider a CSS design with no tables which is actually simpler as table structures are quite easy to break.
Here is a tutorial which explains the concept:
http://css.maxdesign.com.au/floatuto...torial0407.htm
__________________
NameNewsletter.com - free lists of available domain names
ZoneFiles.net (beta) - ccTLD and gTLD droplists
sdsinc is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 01:23 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger