title: FPDF Error Cannot redeclare class FPDF
body: <p>I am receiving the following error when using FPDF</p>
  
  <pre><code>Cannot redeclare class FPDF in /home/www/etrackbureau.co.za/fpdf.php on line 12
  </code></pre>
  
  <p>I am not declaring other classes in any other section of the code</p>
  
  <pre><code>&lt;?php
  //include_once('diag.php');
  include_once('mysql_table.php');
  include_once('../../fpdf.php');
  
  
  class PDF extends PDF_MySQL_Table
  {
  function Header()
  {
      //Title
      $this-&gt;SetFont('Arial','',18);
      $this-&gt;Cell(0,6,'World populations',0,1,'C');
      $this-&gt;Ln(10);
      //Ensure table header is output
      parent::Header();
  }
  }
  
  //Connect to database
  mysql_connect('localhost','stingin_assist','trevor74');
  mysql_select_db('stingin_assist');
  
  $pdf=new PDF();
  $pdf-&gt;AddPage();
  //First table: put all columns automatically
  $pdf-&gt;Table('select * from bureau order by rep_date');
  $pdf-&gt;AddPage();
  //Second table: specify 3 columns
  $pdf-&gt;AddCol('rank',20,'','C');
  $pdf-&gt;AddCol('name',40,'Country');
  $pdf-&gt;AddCol('pop',40,'Pop (2001)','R');
  $prop=array('HeaderColor'=&gt;array(255,150,100),
              'color1'=&gt;array(210,245,255),
              'color2'=&gt;array(255,255,210),
              'padding'=&gt;2);
  $pdf-&gt;Table('select name, format(pop,0) as pop, rank from country order by rank limit 0,10',$prop);
  
  $pdf-&gt;Output();
  ?&gt;
  </code></pre>
  
  <p>I am declaring the class as far as I know only once. As I am new to FPDF a second question is this best to create PDF files with Graphs and writing in it. I have searched the forums and numerous has been mentioned. I am looking for a base line PDF system to write reports from information out of my DB and placing them into graphs</p>