alternating foreach elements

From: Date: Sat, 19 Apr 2003 20:58:02 +0000
Subject: alternating foreach elements
Groups: php.general 
Request: Send a blank email to php-general+get-144503@lists.php.net to get a copy of this message
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

« previous php.general (#144503) next »