Home › Forums › Back End › Display array items one at a time? › Re: Display array items one at a time?
November 15, 2009 at 12:54 am
#66611
Member
I have very quickly read a bit through your code, but here’s a short answer I think should work:
* set $number = $_GET;
* make a default ( if (empty($number)) { $number = 0; } *
* then instead of the foreach do:
$image = displayArray[$number];
After you’ve echo’ed the image. Make a link:
Code:
Code:
—
TeMc
* I know that ‘0" is also considerd "empty", but that doens’t really matter in this case.