<?php include ("connect.php");// my database connect file $sql=mysql_query("select pictures from album where username='$username'"); $i = 0; while($row=mysql_fetch_array($sql)) { $imgsrc=$row[pictures]; echo "<img src=$imgsrc height=150 width=150>"; if ($i % 3 == 0) // 3 column (photos) per row, replace with desired number of column per row { echo "<p>"; } $i++; } ?> _____ From: php-objects@xxxxxxxxxxxxxxx [mailto:php-objects@xxxxxxxxxxxxxxx] On Behalf Of Gab Teo Sent: 31 Desember 2009 16:09 To: php-objects@xxxxxxxxxxxxxxx Subject: RE: How to arrange image Below is the script that echo out the photos, <?php include ("connect.php");// my database connect file $sql=mysql_query("select pictures from album where username='$username'"); while($row=mysql_fetch_array($sql)) { $imgsrc=$row[pictures]; echo "<img src=$imgsrc height=150 width=150>"; echo "<p>"; } ?> I am currently having photos outputting in this form 1 2 3 4 e.t.c and I want it in this form 1 2 3 4 5 6 7 8 9 e.t.c or 1 2 3 4 5 6 e.t.c Thanks, Gab --- On Wed, 12/30/09, Stan Rambin <serambin@ladatahost <mailto:serambin%40ladatahost.com> .com> wrote: From: Stan Rambin <serambin@ladatahost <mailto:serambin%40ladatahost.com> .com> Subject: RE: How to arrange image To: php-objects@ <mailto:php-objects%40yahoogroups.com> yahoogroups.com Date: Wednesday, December 30, 2009, 5:13 PM After reading the original e-mail, I checked and EW-3 SP1 had not installed on my 32bit Vista machine. I user automatic updates ans confirmed that my last update was 12/24/09. I then used the update feature manually and the patch installed fine. Just FYI. Thanks, Stan Rambin From: php-objects@ yahoogroups. com [mailto:php-objects@ yahoogroups. com] On Behalf Of Joe Forsythe Sent: Wednesday, December 30, 2009 9:06 AM To: php-objects@ yahoogroups. com Subject: Re: How to arrange image What is the code you're using right now so we can help you debug it? -- Joe On Dec 30, 2009, at 3:49 AM, Gab Teo wrote: > Please can someone help, I just created a proile for users where > they can also upload their photo album, this is coming (outputing) > in one column and rows, and I want it to be in three column rows, > so that they can have their photos in three per column and as they > upload more photos it would be that this three column s maintain > down the rows. Can any one help me please. > Gab [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed] [Non-text portions of this message have been removed]