Re: Loading Information into an array.

From: Date: Mon, 13 Jan 2003 09:55:33 +0000
Subject: Re: Loading Information into an array.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-131409@lists.php.net to get a copy of this message
while($img1=mysql_fetch_array($result)){ $img2=mysql_fetch_array($result); // now you have $img1 and $img2 echo "<tr><td><img src='$img1[src]'></td><td>$img1[comment]<br><div align='right'>$img2[comment]</div></td><td><img src='$img2[src]'></td></tr> } Philip J. Newman wrote:
I have a table with images and comments. if i have $x amout of images that each have a comment. the comments are displayed in the center colum of the table with the images loading left and right of each comment. http://www.philipnz.com/example.jpg I can get the images to load in their left and right position, how ever i can't get the right array to print each comment with the image. Any help would be cool. Phil


« previous php.general (#131409) next »