[thelist] PHP/HTML graphs and loops

ben morrison morrison.ben at gmail.com
Tue May 19 06:54:08 CDT 2009


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 graph
> (image.php).
> <img src="image.php" alt="Dynamically generated image" />
>
> Now I would like to run a loop function that produces separate graphs in one
> 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&amp;version=1" alt="<?php  echo
$pieVersion1 ?>" />

<img src="image.php?graph=bar&amp;version=1" alt="<?php  echo
$barVersion1 ?>" />

ben

-- 
Ben Morrison



More information about the thelist mailing list