Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
December 28, 2006, 3:20 am
rate this thread
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:
<img src="image.php?img=5" width="200" border="1" alt="Image of
the image.php opens the database and returns the image to the page
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
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
There is no html in image.php.
Thanks for a good group!
Re: question on passing a "variable" back to a calling page
following line at the top of the code:
Then create a function in there
function GetTitle( $ImageNumber )
and maybe another function which gives you the image source code?
function GetImage( $ImageNumber )
echo ' <img src="'.$imgNum.'" width="200" border="1"
That'd be easiest seeing as how it appears you have access to the
first_view.php file, so you can access methods in there.
- » ssh on command line: force using a group size (prime size) of 1024 (and no...
- — The site's Newest Thread. Posted in » Secure Shell Forum