Aug 25, 2000, 10:21 AM
Veteran / Moderator (3034 posts)
Aug 25, 2000, 10:21 AM
Post #4 of 4
Views: 1167
tgardner:
You can easily just create a field for your image or one for each image that you will be uploading to the server.
Let's say you call the field "image".
When you add a record to your database in the field for your image you would enter either the full or relative path to your image. (You should store your images outside of your cgi-bin directory).
Then to display the image within your record you would simply use:
<img src="url/to/graphics/$rec{'image'}">
or
<img src="$rec{'image'}">
If your images will all be the same size you can also include the height, width, and Alt tags which will help your images load faster and provide text for non-graphical browsers.
For more information about working with Images please visit the FAQ noted below and look under "Working with Images".
Hope this helps
Unoffical DBMan FAQ
http://webmagic.hypermart.net/dbman/