You are here: Re: Simple question on retrieving and displaying images. « PHP Programming Language « IT news, forums, messages
Re: Simple question on retrieving and displaying images.

Posted by PHPGB on 10/24/72 11:25

<comp.lang.php , Alec , ajtdds@aol.com>
<1125490980.715563.84190@f14g2000cwb.googlegroups.com>
<31 Aug 2005 05:23:00 -0700>

> I want to also insert an image (of the premises for example) for each
> bed and breakfast found.
>
> Assuming a code in each database entry is actually the exact image
> name, and all are stored in /images, and all of JPG format and fixed
> size, how can I insert the image for each search result found.
>

Add some "blah.jpg" text to each entry I assume .

$poo="blah.jpg";

<a href="images/<?php print $poo; ?>"></a>

<td><?php print $poo; ?></td>

etc

But wont you need 2 images if you also want to use a thumbnail on the
found entrys .


--
www.phpguestbook.co.uk

 

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

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