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


Удаленная работа для программистов  •  Как заработать на 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

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