Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP
Author Message
BriX
Hangin' Around



Joined: Dec 04, 2005
Posts: 31

PostPosted: Sat Jun 10, 2006 10:46 pm Reply with quote

I'm new to php. This is what I am tryin to do:

I have 4 folders with images in them. I want to display the thumb.jpg from each folder to a single page. This the code I have been trying modify but without success. Any advice?

Code:
<?php

while(list($k, $d) = @each($T['dirs'])) {
  print('<div class="folder"><a href="' . $d['list_url'] . '"><img src="' . $T['template_url'] . '/thumb.jpg" alt="' . $d['name'] . '" width="72" height="72" border="0" /><br />' . $d['name'] . "</a></div>\n");
}
?>


Thanks. I'm learning, slowly - but learning.
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6432

PostPosted: Sun Jun 11, 2006 10:11 am Reply with quote

If I couldn't find a script that does this, I'd start with a directory listing script like this and modify it to display the image instead of having a link to download it.

_________________
I search, therefore I exist...
nukeSEO - nukeFEED - nukePIE - nukeSPAM - nukeWYSIWYG
 
View user's profile Send private message
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> PHP

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©