You are here: Re: problem displaying images as thumbnails « PHP Programming Language « IT news, forums, messages
Re: problem displaying images as thumbnails

Posted by Jerry Stuckle on 10/19/05 05:08

Ewoud Dronkert wrote:
> Ian Davies wrote:
>
>> $Image ='images/PupilTester/nopicture.bmp';
>
>
> Bad idea to use a BMP on the web. Try PNG (or GIF).
>
>
>> $size = getimagesize($image);
>
>
> Variable names are case sensitive! Use $image or $Image consistently.
>
>
>> <td rowspan="5" valign="top"><div align="left"><img src=<?php echo $Image;
>>?> width= <?php echo "$width"?> height= <?php echo "$height"?>>
>
>
> Use quotation marks to enclose tag parameter values in HTML, but not when
> echoing PHP variables:
>
> <img src="<?php echo $Image; ?>"
> width="<?php echo $width; ?>"
> height="<?php echo $height; ?>">
>

Actually, quotes are not required for numeric data like height and
width. But it doesn't hurt and is a good habit to get into.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

 

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

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