Get ready for BLACK FRIDAY shopping starting in

Forums

ASP

This topic is locked

Image Help

Posted 26 Feb 2004 16:06:30
1
has voted
26 Feb 2004 16:06:30 Tommy Ready posted:
Ok, I know you can't store an actual image in a database but you can store the link to it in the html directory. How would the code look?

<img src="<%rs.value%>">

Would it kinda look like that?

Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET

Replies

Replied 27 Feb 2004 02:11:05
27 Feb 2004 02:11:05 James Noon replied:
In your database u would just have a column named say Photo and in the column the image name
ie myimage.jpg

Say your images are all in a folder called images at root level....

Your code would look like

<img src="SmImages/<%=(rsProducts.Fields.Item("Photo".Value)%>

That should help!

James Noon,
Chameleon Digital Media, UK
Replied 27 Feb 2004 18:08:41
27 Feb 2004 18:08:41 Tommy Ready replied:
<img src="SmImages/<%=(rsProducts.Fields.Item("Photo".Value)%>

What does the SmImages/ stand for? I understand the rest but that part is confusing me...lol

Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET
Replied 27 Feb 2004 20:51:02
27 Feb 2004 20:51:02 Dave Thomas replied:
small images ?

£50 to win <img src=../images/dmxzone/forum/icon_smile_big.gif border=0 align=middle>

Regards,
Dave

[DWMX 2004]|[FlashMX 2004 Pro]|[Studio MX 2004]|[SQL]|[Access2000/2002]|[ASP/VBScript]|[XP-Pro]
If you like online gaming, please register @ www.nova-multigaming.com
Replied 28 Feb 2004 01:45:35
28 Feb 2004 01:45:35 Tommy Ready replied:
So is that going to make a thumb nail of my image?

Dreamweaver MX | Flash 5/MX | Visual Studio 6.0 | Visual Studio .NET

Reply to this topic