I hope you can help me. The Jpgraph forum seems to be pretty
uneventful with participation.

I am trying to pass arrays through the image tag to populate my
variables for my graph.

I keep getting an error that there is no input. Do you have any suggestions?

I would greatly appreciate it! I have been trying to figure this out
for several hours.

Below is my code:

I need some help with finding a solution. For some reason my graph is
not showing up when it evident that my arrays are being passed.

When I use:




I keep getting the error:

Empty input data array specified for plot.


My php script is as follows:


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"

<html xmlns="http://www.w3.org/1999/xhtml";>


<title>KCRF Dashboard</title>


ini_set('display_errors', 1);





//include ('err_reporting.php');

require ('PHP_Scripts/config.php');

require_once ('jpgraph/jpgraph.php');

require_once ('jpgraph/jpgraph_line.php');

   $sql = ("SELECT * FROM evdobanding WHERE Market like '%$term' and
Cell_Sect = '$term2' and Date = '$term3' ORDER BY distance asc");

   $result = mysql_query($sql);

   while($row = mysql_fetch_array($result))


   $datay[] = $row["MBusage"];

   $datax[] = $row["Distance"];





<style type="text/css">


 #navbar ul {

        margin: 0;

        padding: 5px;

        list-style-type: none;

        text-align: center;

        background-color: #000;


#navbar ul li {

        display: inline;


#navbar ul li a {

        text-decoration: none;

        padding: .2em 1em;

        color: #fff;

        background-color: #000;


#navbar ul li a:hover {

        color: #000;

        background-color: #fff;





<fieldset style="border: 1px ridge limegreen; color: limegreen;">
<legend style="color: #000; font-family: verdana; font-size:
14pt;">EVDO PCMD BANDING</legend> <body> <div id="navbar">


        <li><a href="index.php">Home</a></li>

        <li><a href="dd3.php">EVDO PCMD KPI</a></li>

        <li><a href="banding.php">EVDO Distance Banding</a></li>

        <li><a href="test.php">TEST_BANDING</a></li>

        <li><a href="">LinkHere</a></li>





echo "You Selected the following:<br>Market = $term <br>Cell_Sector =
$term2<br>Timestamp = $term3<br>"; ?>

<img src="bandingGraph.php?$datax=$row["Distance"]&$datay=$row["MBusage"];">
// I think this is where I am having issues.




My graph script is:

<?php // content="text/plain; charset=utf-8"

require_once ('jpgraph/jpgraph.php');

require_once ('jpgraph/jpgraph_line.php');

   // Create the graph.

   $graph = new Graph(1024,450,"auto");



   // Slightly adjust the legend from it's default position



   //Setup X-scale



     //$graph->xtick_factor = 1;


   // Create the linear plot

   $lineplot= new LinePlot($datay);

   $p1 = new LinePlot($datay);






   $p1->SetLegend("EVDO F1 Carrier");


   // Add the plot to the graph


   // Setup margin and titles



   $graph->title->Set("Distance in MIles");


   // set margin color


   // Use built in font










   // Display the graph



Thank you,


PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to