selecting img file extension.
| From: | Bruce Levick | Date: | Tue, 17 Dec 2002 04:27:21 +0000 |
| Subject: | selecting img file extension. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-128508@lists.php.net to get a copy of this message | ||
Sorry for the newbie question.
I am an artist and entering my pieces into a database....basically all
that will be displaying will be
Title:
Medium:
Date Created:
and an image (.gif, .jpg, .swf)
I want to know what is the best way to call a specific image type.???
Should I give each image file extension a column |.gif | .jpg | .swf |
and set that all these columns to only display when asked??
So for an example case. I have a piece of artwork Called Cheetah.
Title: Cheetah
Medium: Water Color
Date Created: 1998
cheetah.jpg
How do I set up my table so when I add this piece to my databse I can
select .jpeg extension to true.....so to speak, and leave gif and swf
false.
My image source might be (i know the coding will be wrong) <img
src="images/?title? . ?ext?"> (cheetah.jpg).
Cheers