Link to home
Start Free TrialLog in
Avatar of areyouamac
areyouamac

asked on

Displaying specific range

Hello,

I have a set of 7 images.

Here is the code that I am using to show the images  
for ($i = 0; $i < $image_num; $i++):

Open in new window


It starts from the 1st image, and displays all of them in order.

How can I just show images 1 - 5, and leave out images 6 and 7? Images 6 and 7 are used for other pages.

Thanks!
ASKER CERTIFIED SOLUTION
Avatar of Allentkw
Allentkw
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of hielo
hielo
Flag of Wallis and Futuna image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of areyouamac
areyouamac

ASKER

Both worked wonderfully.

I would have to give Alientkw 400 as he was able to answer first.

Thanks!