[thelist] PHP/HTML graphs and loops
heanpeng at gmail.com
Tue May 19 08:04:07 CDT 2009
Thanks - still confused about how I can call the variables in image.php
1) In your example below, does "graph" need to be a variable defined in
image.php? Is there an easy way to do this?
2) How do I loop the below in HTML? I tried to turn this into PHP but it
doesn't recognise the function img src.
<img src="image.php?graph=pie&version=1" alt="<?php echo
$pieVersion1 ?>" />
Thanks in advance.
On Tue, May 19, 2009 at 9:54 PM, ben morrison <morrison.ben at gmail.com>wrote:
> On Tue, May 19, 2009 at 12:48 PM, HP Thniah <heanpeng at gmail.com> wrote:
> > I am using an HTML image tag to call a separate page that contains a
> > (image.php).
> > <img src="image.php" alt="Dynamically generated image" />
> > Now I would like to run a loop function that produces separate graphs in
> > page, without having to make duplicates of image.php - perhaps put a loop
> > within image.php.
> > Does anybody know how I can do this?
> Could you send the required parameters to image.php
> <img src="image.php?graph=pie&version=1" alt="<?php echo
> $pieVersion1 ?>" />
> <img src="image.php?graph=bar&version=1" alt="<?php echo
> $barVersion1 ?>" />
> Ben Morrison
> * * Please support the community that supports you. * *
> For unsubscribe and other options, including the Tip Harvester
> and archives of thelist go to: http://lists.evolt.org
> Workers of the Web, evolt !
More information about the thelist