Gossamer Forum
Home : Products : DBMan : Customization :

A way to display images in fields?

Quote Reply
A way to display images in fields?
Thinking of using DbMan, but don't see
a way to display .gif or .jpg images in
the fields. Is this possible? How would
this be done in the config?

Thanks.
Quote Reply
Re: A way to display images in fields? In reply to
 
The most common (and easiest way) to display images is to name or number your images the same as one of the fields already in your database, and place them all in a directory. Say for example you had a "name" field. Well, in that case, to display an image, in your html.pl you would have a line like:

<img src="http://yourserver.com/images/$rec{'name'}.gif">

Another way to do it is to have a field for the entire image url, which you would display in much the same way as above.

adam