You are here: Re: Display pictures corresponding to database entry. « All PHP « IT news, forums, messages
Re: Display pictures corresponding to database entry.

Posted by robert on 05/15/06 19:46

| Try inserting the following where you want the picture to be display:
|
|
| <?php
| $image = ; // image location and filename
| $name = ; // name of person
|
| $size=getimagesize($image); // set the dimensions of image
| ?>
|
| <img src="<?php echo $image; ?>" alt="<?php echo $name;?>" <?php echo
| $size[3]; ?>">

<op ignore, plz.>

oh martin! again with the helpful advice. by default, MOST browsers display
an image with it's normal size...so your "advice" is STILL less than useful.
one typically specifies size when one wants to control the size either
larger/smaller than the original. in this context, the op is most likely
going to want to have the images display uniformly...namely, a specific
height/width ratio with a max limit.

either learn to give more helpful advice or, if you simply lack the capacity
thereof, don't advise at all.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация