Page 1 of 1
pictures in catalog
Posted: Sun Dec 07, 2003 6:56 pm
by onbeat69
i need to load images in my table database, display in product catalog, and display images in my shopping cart, thru adding the selected image on shopping cart database thru mysql, coding is in php. how do i load imagers and display the images on a table form...
Posted: Sun Dec 07, 2003 9:31 pm
by DuFF
With each item in the database you can have a URL to the picture of the item. So then when you call your database to get the info about each item you can just output something like this:
Code: Select all
<img src="<?php echo $imgurl; ?>" border="0" alt="">
Posted: Sun Dec 07, 2003 10:04 pm
by microthick
Or, you can store the images in the database.
This is the tutorial I learned from:
http://www.phpbuilder.com/columns/florian19991014.php3