Current location: Hot Scripts Forums » General Community » Script Requests » sequential image display


sequential image display

Reply
  #1 (permalink)  
Old 05-28-06, 05:18 AM
mangled mangled is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
sequential image display

Hi, all,

What I am looking for is probably very simple to implement, I guess. I just need a little script that will display 25 - 50 images at a time. The images would be located at url's like this:

http://www.something.com/user/pix.php?file=/23/f1.jpg
http://www.something.com/user/pix.php?file=/24/f1.jpg
http://www.something.com/user/pix.php?file=/25/f1.jpg

And so on.

I guess I just need the 23, 24, 25, etc., to increase to whatever I want and then to be put into an image tag.

I have looked at the documentation php.net, but I really do not know how to begin.

Can anyone point me in the right direction?

Thanks in advance!

P.S.

What I need is simply for the picture variable below to increase over and over again, maybe?

Code:
  <IMG SRC="<?php echo $picture; ?>" WIDTH="50" HEIGHT="50" BORDER="1">

Last edited by mangled; 05-28-06 at 05:30 AM. Reason: forgot something
Reply With Quote
  #2 (permalink)  
Old 05-28-06, 05:33 AM
mangled mangled is offline
Newbie Coder
 
Join Date: Aug 2003
Posts: 54
Thanks: 0
Thanked 0 Times in 0 Posts
Hmmm... I feel that the answer is here: http://www.w3schools.com/php/php_looping.asp

I will keep looking
Reply With Quote
  #3 (permalink)  
Old 05-28-06, 07:12 AM
snaip's Avatar
snaip snaip is offline
iNET Interactive
 
Join Date: Nov 2003
Posts: 997
Thanks: 2
Thanked 7 Times in 6 Posts
PHP Code:

<html>

<body>

<?php
$i
=23;
while(
$i<=50)
{
echo 
"<IMG SRC=\"http://www.something.com/user/pix.php?file=/$i/f1.jpg\" WIDTH=\"50\" HEIGHT=\"50\" BORDER=\"1\">\n";
$i++;
}
?>

</body>
</html>
__________________
Regards,
Ahmad Permessur
Team HotScripts
Reply With Quote
Reply

Bookmarks


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

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Selecting image to display via asp form Anessa ASP 3 08-25-05 08:32 AM
Image display problem henryw PHP 2 05-02-05 06:44 PM
Help! Image Display "IF" dayzeday PHP 1 04-12-05 03:52 AM
how to display the image from the database??? jaishalg PHP 8 01-26-05 05:47 PM
Image display based on URL rjwebgraphix PHP 5 09-09-04 08:02 AM


All times are GMT -5. The time now is 11:23 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.