Posted by Rik on 05/15/06 22:25
Richard Heinz wrote:
>> <?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]; ?>">
> I inserted the code as you stated and I know I can access the image
> file becuase if I change the name the get imagesize reports an error
> message. The problem I have is it does not display the image but it
> displays the alt info.
> So what is wrong? It displays a a square with an 'x' and reserves
> room for the image.
Looking at the source:
<b>Warning</b>: getimagesize(): Read error! in
<b>/data/10/0/129/80/781406/user/800150/htdocs/Missions/DistrictMissionary.p
hp</b> on line <b>176</b><br />
<img src="" alt="Tom and Miriam" > </td>
$image doesn't get set, fix that.
Grtz,
--
Rik Wasmus
Navigation:
[Reply to this message]
|