Re: jpgraph and mysql passing array
| From: | Simcha Younger | Date: | Thu, 24 Mar 2011 09:41:07 +0000 |
| Subject: | Re: jpgraph and mysql passing array | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-47733@lists.php.net to get a copy of this message | ||
On Wed, 23 Mar 2011 15:59:50 -0500
Chris Stinemetz <chrisstinemetz@gmail.com> wrote:
> Hello,
> <?php
>
> echo "You Selected the following:<br>Market = $term <br>Cell_Sector =
> $term2<br>Timestamp = $term3<br>"; ?>
note the closing PHP tag above, and now
this line here, is not in php, and does not echo the php variables.
>
> <img
> src="bandingGraph.php?$datax=$row["Distance"]&$datay=$row["MBusage"];">
> // I think this is where I am having issues.
>
try instead
<?php
echo '<img
src="bandingGraph.php?datax='.$row["Distance"].'&datay='.$row["MBusage"].'">';
?>
--
Simcha Younger <simcha@syounger.com>