UPDATE: I have the php file reading from the mysql database just fine, i'm just not sure how to format the xml string to work.
//Request the factory Id from Querystring
$ProductId = $_GET['ProductId'];
//Generate the chart element string
$strXML = "";
// Connect to the DB
$link = connectToDB();
//Now, we get the data for that factory
$strQuery = "select * from Product_Master where ProductId=" . $ProductId;
$result = mysql_query($strQuery) or die(mysql_error());
//Iterate through each factory
if ($result) {
while($ors = mysql_fetch_array($result)) {
//Here, we convert date into a more readable form for set label.
$strXML .= "**less than symbol here**set label='" . $ors['Company'] . "' value='" . $ors2['Date'] . "' value='" . $ors2['Price'] . "' /**greater than symbol here**";
}
}
mysql_close($link);
//Close element
$strXML .= "";
//Create the chart - Column 2D Chart with data from strXML
echo renderChart("../../FusionCharts/Column2D.swf", "", $strXML, "FactoryDetailed", 600, 300, false, false);
?>
I had to replace this: < with: **less than symbol here** because it wasn't showing up right for some reason. in my real code, it's correct.
I'm fairly certain that the problem is that my strXML string isn't being generated properly. I've just been using some trial and error here, so the string is probably totally jacked up at this point.
Please let me know what you think.
Thanks,
- David