Re: alternating foreach elements

From: Date: Sat, 19 Apr 2003 22:44:12 +0000
Subject: Re: alternating foreach elements
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-144504@lists.php.net to get a copy of this message
are you wanting to have a two column table with images? side-by-side ?? or just img img <BR><BR> img img <BR><BR> img img <BR><BR> are you wanting to end up with something like that? Jim ----- Original Message ----- From: <ruusvuu@whitney.dns2go.com> To: <php-general@lists.php.net> Sent: Saturday, April 19, 2003 1:58 PM Subject: [PHP] alternating foreach elements > Hello Gang: > > Can you see what I am trying to do here?: > > $odd = true; > foreach($_GET as $in => $on){ > $array = explode('_', $in); > > $num = $array[1]; > if ($odd == 'true'){ > print "<img src=/uploads/$mls/$num.jpg width=340 hspace=6>";} > else {print "<img src=/uploads/$mls/$num.jpg width=340 hspace=6><br><br>";} > } > > > What I am trying to do is print a number of images to the flyer with pictures > side by side. > > Make Sense? > > Thanks > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#144504) next »