SunQuest
 
           General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
SlickEdit: Code in over 40 languages across 7 platforms. SlickEdit’s unmatched power, speed, and flexibility allows even the most accomplished developers to write better code faster. Download a free trial today!
  #1  
Old March 8th, 2003, 08:22 PM
Taelo Taelo is offline
5B's
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Oct 2002
Location: PC, FL
Posts: 364 Taelo User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 48 m 26 sec
Reputation Power: 6
possible problem using array functions

Since I got my pet Rabbits a few months back I decided to build my own image gallery and I have a few questions.

my plan is to have 2 pics for each set of pictures. One small thumbnail and 1 large image. when the user clicks the thumbnail image I am going to use a typical image gallery layout and allow the user to click on to the next image. Well I am curious on how to do this. I could select * from images where user = $user but as far as creating the href to go on to the next image,....will this work?

PHP Code:
 $images mysql_query("select * from images where user_id = '$user_id'");
$image mysql_fetch_array($images);
echo 
"<a href='foo.php?image_id=" next($image['image_id']);
or
echo 
"<a href='foo.php?image_id=" prev($image['image_id']); 


and if this is ok to do,...what happens / how do you know,...when you reach the end of the array?

I hope I conveyed my concerns cleary enough

TIA
__________________
-- Jason

Last edited by Taelo : March 8th, 2003 at 08:48 PM.

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > possible problem with array functions


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 

Iron Speed




© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway