bassamj

Members
  • Content count

    6
  • Joined

  • Last visited

Everything posted by bassamj

  1. help

    <?php //In this example, we show how to connect FusionCharts to a database. //For the sake of ease, we've used an MySQL databases containing two //tables. // Connect to the DB $link = connectToDB(); $strCategories = ""; $strDataCurr = ""; $strDataPrev = ""; $strDataPc = ""; //$strXML will be used to store the entire XML document generated //Generate the chart element $strXML = ""; // Fetch all factory records $strQuery = "select * from form_results"; $result = mysql_query($strQuery) or die(mysql_error()); //Iterate through each factory if ($result) { while($ors = mysql_fetch_array($result)) { $strCategories .= ""; $strDataCurr .= ""; $strDataPrev .= ""; $strDataPc .= ""; } } mysql_close($link); $strCategories .= ""; $strDataCurr .= ""; $strDataPrev .= ""; $strDataPc .= ""; $strXML .= $strCategories . $strDataCurr . $strDataPrev . $strDataPc . ""; echo renderChart("../../FusionCharts/MSColumn3D.swf", "", $strXML, "productSales", 600, 300, false, false); ?> Delete Last Entry
  2. help

    Thank you very much, you were very helpful. Bassam
  3. please help

    suppose I have the following table in my database id data value 1 janWk1 34 2 janWk2 23 3 janWk3 43 I managed to connect to a database, but I have another problem. lets suppose I enter the value of janWk1 wrong and I want to repeat the entry replacing that wrong value on the chart through a form. it will display duplicate of janWj1 with two bars on the chart and I want when re-enter the value to replace the old wrong value on the chart Best Regards
  4. please help

    only one record I want to display the updated record only Thanks
  5. Hi, Does anyone have simple example of php code and mysql for multiseies chart Please....Please help me I am depressed
  6. please help

    Hi, yes it is creating a new record. what can I do in this condition? Thanks