Can someone please help me out I am getting this error
here is the PHP Code I am using
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '= '202'' at line 1
here is the PHP Code I am using
PHP Code:
//Fetch all needed records
$strQuery = "SELECT * FROM lead_partners_pages";
$strQuery .="WHERE afid_seller = '202'";
$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 month
if ($result) {
while($ors = mysql_fetch_array($result))
{
$strXML .= "<set name='" . $ors['date'] . "' value='" . $ors2['price_CIQFY_paid'] . "' />";
}
}
//Finally, close <graph> element
$strXML .= "</graph>";
//Create the chart - Pie 3D Chart with data from $strXML
echo renderChart("FusionCharts/FCF_Pie3D.swf", "", $strXML, "myFirst", 270, 200);
Comment