Hey guys everything is working fine except for one thing. some of the dates are the same dates like "08/26/2011" but the dollar amounts are different is it possible just to show the amount of dollars made on that date?
right now i am getting data like this.
08/27/2011 $23
08/27/2011 $51
08/27/2011 $43
08/26/2011 $53
08/26/2011 $32
08/26/2011 $94
but I would rather get it like this.
08/27/2011 $117
08/26/2011 $179
please help
right now i am getting data like this.
08/27/2011 $23
08/27/2011 $51
08/27/2011 $43
08/26/2011 $53
08/26/2011 $32
08/26/2011 $94
but I would rather get it like this.
08/27/2011 $117
08/26/2011 $179
please help

PHP Code:
<?php
//Fetch all needed records
$strQuery ="SELECT * FROM lead_partners_pages ";
$strQuery .="WHERE afid_seller = '202'"; //$password
$result = mysql_query($strQuery) or die(mysql_error());
$strXML = "<graph caption='Monthly Report' decimalPrecision='0' showNames='1' numberSuffix=' dollars' pieSliceDepth='30' formatNumberScale='0'>";
//Iterate through each factory
if ($result) {
while($ors = mysql_fetch_array($result)) {
$strXML .= "<set name='{$ors['date_day']}'
value='{$ors['price_CIQFY_paid']}' />";
}
}
//Finally, close <graph> element
$strXML .= "</graph>";
//Create the chart - Pie 3D Chart with data from $strXML
echo renderChart("FusionCharts/FCF_Column3D.swf", "", $strXML, "myFirst", 725, 500);
?>
Comment