Basically have to do three things: manipulate some data in a db, dynamically create an xml document and xsl stylesheet and finally create a piechart that uses the data from db.
Apparently pretty easy stuff, load of gobbledegook to me tho
<?php
# Edit these variables to your settings.
$servername = "your_mysql_server";
$dbuser = "dbuser";
$dbpass = "dbpass";
$dbname = "databasename";
$link=mysql_connect ("$servername","$dbuser","$dbpass");
if(!$link){die("Could not connect to MySQL");}
mysql_select_db("$dbname",$link) or die ("could not open db".mysql_error());
# now code the stuff to retrieve data from the selected database.
?>
I've done the database connect thing which I lifted from a book, it's the rest of it I can't do as I've never learnt or been taught it. I thought a crate of beer would have tempted someone, might have to make it two...