MySQL Forums
Forum List  »  PHP

Re: Display the DB column Grid view using PHP
Posted by: adam island
Date: April 01, 2010 04:33PM

you probably want to store all image files in the same directory and store the filenames in the database. then you can display them like this.

while ($row = mysql_fetch_assoc($result)){
?>
<tr bgcolor=#DAE5E9>
<td align=left><?php echo $row["name"];?></td>
<td align=left><?php echo $row["addres"];?></td>
<td align=center><img src="http://www.domain.com/folder/images/<?php echo $row["image_file"]; ?>"></td>
</tr>
<?php }?>

Options: ReplyQuote


Subject
Written By
Posted
Re: Display the DB column Grid view using PHP
April 01, 2010 04:33PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.