pictures in catalog

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
onbeat69
Forum Newbie
Posts: 4
Joined: Sun Dec 07, 2003 6:56 pm
Contact:

pictures in catalog

Post 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...
User avatar
DuFF
Forum Contributor
Posts: 495
Joined: Tue Jun 24, 2003 7:49 pm
Location: USA

Post 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="">
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post 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
Post Reply