display images from database
Posted: Tue Oct 27, 2009 6:59 pm
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>"; } ?>
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>"; } ?>