Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End Display array items one at a time? Re: Display array items one at a time?

#66611
TeMc
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.