Gossamer Forum
Home : Products : DBMan : Customization :

Displaying images with DBMan

Quote Reply
Displaying images with DBMan
I would like to make a company directory where one of the fields would be to display their logo as a gif file.
Is it possible to do this with DBMan?
If posible, then how do you do it?
Thanks,
Rodrigo
Quote Reply
Re: Displaying images with DBMan In reply to
You could do it by having a field named 'photo' or something like that that contained the URL to the logo and display it in html.pl as follows:

print qq|<img src=$rec{''photo'}>|;

Put this line wherever you want to display the logo.

Or you could use JP's upload image mod but the first way is probably an easier start.

Mike

[This message has been edited by mike1 (edited June 07, 1999).]
Quote Reply
Re: Displaying images with DBMan In reply to
A couple of litte addenda to Mike's answer. (Thank you, Mike!)

The reference to the img src must be a complete URL to the image file.

There's a little typo in Mike's syntax. It should be

print qq|<img src="$rec{'photo'}">|;

I make this kind of typo all the time. I only seem to catch them when they're made by someone else. Smile

------------------
JPD





Quote Reply
Re: Displaying images with DBMan In reply to
Thanks to both.
I kind of knew there had to be an easy way to do it.
Thanks