title: PHP phpgraphlib Error
body: <p>Currently i working on website using wordpress. So, i using phpgraphlib create a graph according to my <strong>PHPMYADMIN database.</strong> </p>
  
  <p>I have a problem is when create a graph using SQL with Session variable, it show error message "graph too small or too many data points" as shown at below Example1 image.But when i create a graph using SQL with predefine value for <code>Username="leeyengyang"</code>, it generate a graph perfectly as shown in below Example image. So, i try echo the <code>$sql</code> query for the <code>$_SESSION['fullname'],</code> it shows <code>SELECT * FROM YY where Username= 'leeyengyang'. It should be no difference between $_SESSION['fullname']</code> and <code>'leeyengyang'</code>, but the graph is not display properly. </p>
  
  <p>Please help.
  I had attach my data from <strong>PHPMYADMIN</strong> , Example1 code &amp; image, Example code &amp; image at below. </p>
  
  <p>Example1 Code:
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  include("phpgraphlib.php");
  $graph=new PHPGraphLib(550,350); 
  $link = mysql_connect('localhost', 'YY', 'YY123')
     or die('Could not connect: ' . mysql_error());
       
  mysql_select_db('YY_hospital') or die('Could not select database');
    
  $dataArray=array();
    
  //get data from database
  $sql = "SELECT * FROM YY where Username= '". $_SESSION['fullname']."'";
  
  $result = mysql_query($sql) or die('Query failed: ' . mysql_error());
  if ($result) {
    while ($row = mysql_fetch_assoc($result)) {
        $salesgroup=$row["Date"];
        $count=$row["Data"];
        //add to data areray
        $dataArray[$salesgroup]=$count;
    }
  }
    
  //configure graph
  $graph-&gt;setBackgroundColor("black");
  $graph-&gt;addData($dataArray);
  $graph-&gt;setBarColor('255,255,204');
  $graph-&gt;setTitle('Tracking System');
  $graph-&gt;setTitleColor('yellow');
  $graph-&gt;setupYAxis(12, 'yellow');
  $graph-&gt;setupXAxis(20, 'yellow');
  $graph-&gt;setGrid(false);
  $graph-&gt;setGradient('silver', 'gray');
  $graph-&gt;setBarOutlineColor('white');
  $graph-&gt;setTextColor('white');
  $graph-&gt;setDataPoints(true);
  $graph-&gt;setDataPointColor('yellow');
  $graph-&gt;setLine(true);
  $graph-&gt;setLineColor('yellow');
  $graph-&gt;createGraph();
  ?&gt;</code></pre>
  </div>
  </div>
  
  Example 1 Image: <a href="http://i184.photobucket.com/albums/x184/Akasha_92/Fail_zps75bd8268.png" rel="nofollow">http://i184.photobucket.com/albums/x184/Akasha_92/Fail_zps75bd8268.png</a>
  Example Code:
  <div class="snippet" data-lang="js" data-hide="false">
  <div class="snippet-code">
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;?php
  include("phpgraphlib.php");
  $graph=new PHPGraphLib(550,350); 
  $link = mysql_connect('localhost', 'YY', 'YY123')
     or die('Could not connect: ' . mysql_error());
       
  mysql_select_db('YY') or die('Could not select database');
    
  $dataArray=array();
    
  
  $sql = "SELECT * FROM YY where Username= 'LEEYENGYANG'";
  $result = mysql_query($sql) or die('Query failed: ' . mysql_error());
  if ($result) {
    while ($row = mysql_fetch_assoc($result)) {
        $salesgroup=$row["Date"];
        $count=$row["Data"];
        //add to data areray
        $dataArray[$salesgroup]=$count;
    }
  }
    
  //configure graph
  $graph-&gt;setBackgroundColor("black");
  $graph-&gt;addData($dataArray);
  $graph-&gt;setBarColor('255,255,204');
  $graph-&gt;setTitle('Tracking System');
  $graph-&gt;setTitleColor('yellow');
  $graph-&gt;setupYAxis(12, 'yellow');
  $graph-&gt;setupXAxis(20, 'yellow');
  $graph-&gt;setGrid(false);
  $graph-&gt;setGradient('silver', 'gray');
  $graph-&gt;setBarOutlineColor('white');
  $graph-&gt;setTextColor('white');
  $graph-&gt;setDataPoints(true);
  $graph-&gt;setDataPointColor('yellow');
  $graph-&gt;setLine(true);
  $graph-&gt;setLineColor('yellow');
  $graph-&gt;createGraph();
  ?&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Example Image: <a href="http://i184.photobucket.com/albums/x184/Akasha_92/ok_zpsbd175b29.png" rel="nofollow">http://i184.photobucket.com/albums/x184/Akasha_92/ok_zpsbd175b29.png</a></p>