You are here: Re: question on passing a "variable" back to a calling page « PHP Programming Language « IT news, forums, messages
Re: question on passing a "variable" back to a calling page

Posted by BKDotCom on 12/28/06 03:32

a separate DB query in the main php page.. grab all the info except
for the image data
ie, title, width, height (if stored), filename, whatever, etc..

eholz1 wrote:
> Hello PHP Group,
>
> I have a php page that calls another php page to load a image from a
> database (mysql) in to the calling page.
> It works like this:
> first_view.php has
> <img src="image.php?img=5" width="200" border="1" alt="Image of
> Sunset">
> the image.php opens the database and returns the image to the page
> (first_view.php).
>
> image.php can (does) also pull the title of the image being loaded to
> first_view.php out of the query where the image data is send back:
>
> I send the image data back like this:
>
> //echo back the image data
> header("Content-type: image/jpeg");
> echo base64_decode($encodeddata);
>
> I have a <p></p> tag under the image tag, and would like to put the
> title from the database there.
> How can I pass the title of the image back to first_view from
> image.php.
>
> There is no html in image.php.
> Thanks for a good group!
>
> ewholz

 

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

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