this is so difficult for me
| From: | Thomas Edward Lawrence | Date: | Sun, 24 Aug 2003 09:56:16 +0000 |
| Subject: | this is so difficult for me | ||
| Groups: | php.windows | ||
| Request: | Send a blank email to php-windows+get-21226@lists.php.net to get a copy of this message | ||
I have an array $row["pictures"] which includes 15 pictures , I want to
echo it like this , this is so difficult for me ,
picture1 picture2 picture3 picture4 picture5
picture6 picture7 picture8 picture9 picture10
picture11 picture12 picture13 picture14 picture15
this is my code ;
<?
mysql_connect('localhost', '', '');
mysql_select_db("myshop");
$result= mysql_query("select * from productlist where id=$mn") ;
$i = 0;
$cnt = mysql_num_rows($result);
while ($i <= $cnt)
{
$row = mysql_fetch_array($result) ;
$i++ ;
$_SESSION["picture($i)"] = $row["pictures"] ;
echo "<tr><td><img src=". $row["pictures"]
."></td></tr>" ;
}
?>