Jump to content

display images from database


kabucek

Recommended Posts

hello all,

 

I got small query to pull out image from database.

It creates a table but second image is displayed below (verticaly).

I want it to be displayed horizontaly, how can I achieve that?

Thanks !!

 

 

$result2 = mysql_query("SELECT * FROM tbl_usr_gal_pic where usr_email ='$email1' ");

 

while($row2 = mysql_fetch_array($result2) )

  {

 

echo "

<TABLE BORDER=0 CELLPADDING=4>

<TR>

   

<td>"; echo '<img src =\'' . $row2[3] .'\' width="140" height="160" border="0" >'; echo "</td>

 

  <TD></TD> <TD> </TD>

    </TR>

<TR>

<td>Name</td>

  <TD> </TD> <TD> </TD>

    </TR>

<TR>

<td>$1,000.00</td>

    <TD> </TD> <TD> </TD>

    </TR>

 

 

</TABLE>"; } ?>

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.