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 Martin Jay on 05/15/06 21:32

In message <2g2ag.23$EA.22@fe03.lga>, robert
<ab@no.spam-alama-ding-dong> writes
>| 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]; ?>">

>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.

I've cross-posted this to alt.html.

My advice would be the opposite of yours: include image width and height
in the img element, and don't use them to change the size of an image.
--
Martin Jay

 

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

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