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
==================
[Back to original message]
|