RE: How to arrange image

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxx> wrote:

From: Stan Rambin <serambin@xxxxxxxxxxxxxx>
Subject: RE:  How to arrange image
To: php-objects@xxxxxxxxxxxxxxx
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]


[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Soap]     [Kernel Newbies]     [Yosemite]     [Yosemite Campsites]

  Powered by Linux