title: phpgraph lib not showing any output
body: <p>Im using phpgraph lib to create graphs on my linux server. I tried an example and it worked, but I had provided it with the data.</p>
  
  <p>then I wanted to connect it to mysql database and plot a query, when I run it, nothing happens, I don't see any output on the page or any errors, I don't see any output on the page at all, even if I put wrong credentials to my database e.t.c any inputs?</p>
  
  <p>I have executed the sql statement on sql server and it's working fine.</p>
  
  <p>the version of php the server has is PHP 5.3.3 </p>
  
  <pre><code>   &lt;?php
  
  include('phpgraphlib.php');
  $graph= new PHPGraphLib(550,350); 
  
  
  $link = mysql_connect('localhost', 'user', 'password')
   or die('Could not connect: ' . mysql_error());
  
  
  mysql_select_db('databasename' or die('Could not select database');
  
  $dataArray=array();
  
  //get data from database
  $sql="my sql statement";
  $result = mysql_query($sql) or die('Query failed: ' . mysql_error());
  if ($result) {
   while ($row = mysql_fetch_assoc($result)) {
    $salesgroup=$row["var1"];
    $count=$row["count"];
    //add to data areray
       $dataArray[$salesgroup]=$count;
   }
  }
  
  //configure graph
      $graph-&gt;addData($dataArray);
     $graph-&gt;setTitle("Sales by Group");
     $graph-&gt;setGradient("lime", "green");
    $graph-&gt;setBarOutlineColor("black");
    $graph-&gt;createGraph();
    ?&gt;
  </code></pre>