How can I display thumbnail images from a database?
How can I display thumbnail images from a database on a web page?
Answer:
We assume that you have already input recordset, Update Record and our extensions Pure PHP Upload and Smart Image Processor in the page.
Now you will just need to input the following code where you want your images to be displayed:
<img src="../images/thumb_"<?php echo $row_rsImages['ImageFile']; ?> />
where rsImages is your recordset name and ImageFile is the name of the file in your database. That way you will create a prefix "thumb_".
DISCLAIMER:
This is extra complimentary content which purpose is to show
additional usage that is not part of the product, i.e. it suggests tips
for extending the functionality of the product by the users themselves.
DMXzone does not take responsibility to support the suggested
content to be fully compatible and working as intended and does not
provide support for extended functionality which is not included in the
current release of the extension.
It is highly recommended that only more advanced developers use it.
Comments
Be the first to write a comment
You must me logged in to write a comment.