Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Calling image from database. How do I set size? 2

Status
Not open for further replies.

boyfromoz

Technical User
Feb 1, 2001
469
AU
I have made a shopping cart, where the pic to be shown is called from a database. The pic height and width is set by recording the image height and width in the database, then claling these figures in when the picture is displayed.

This is extremely laborious.

Does anyone no a way where I can call a picture from a database, and have the pciture appear showing its actual width and height.

My pictures will always be the same width, but bary in height so I can't simply stretch the picture box in dreamweaver to a set size.

 
If you don't specify a width or height, your pictures will just come out as their native width and height -- no special consideration needed.
penny.gif
penny.gif
 
Hi again, nippi!

If you know that you images will always have the same width and only height may change - set only width and don't specify height. That's the way most sites do.

Good Luck!
 
Thanks all. It was a stuff up in design I made which I have now fixed. I set the width/height fields at particular values when I was building the site so I could see approximately how it would look. I didn't realise that I needed to go back and place no value in the height field so that the height of the pic would then be used.

Problem now solved.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top