﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>FusionCharts Forum / FusionCharts Free / FusionCharts Free and PHP   / Dynamic Chart based on ODBC from Access backend / Latest Posts</title><generator>InstantForum.NET v4.1.4</generator><description>FusionCharts Forum</description><link>http://www.fusioncharts.com/forum/</link><webMaster>support@fusioncharts.com</webMaster><lastBuildDate>Tue, 02 Dec 2008 06:20:58 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Dynamic Chart based on ODBC from Access backend</title><link>http://www.fusioncharts.com/forum/Topic5464-43-1.aspx</link><description>I finally got it, if anybody needs an obdc simple example&lt;br&gt;&lt;br&gt;&lt;?php&lt;br&gt;$conn=odbc_connect('yourODBCconnection','','');&lt;br&gt;&lt;br&gt;$firststring=  your SQL query string&lt;br&gt;$rs=odbc_exec($conn,$firststring);&lt;br&gt;	   &lt;br&gt;$strXML = "&lt;graph caption='Test' xAxisName='Agents' yAxisName='Lines' decimalPrecision='0' formatNumberScale='0' rotateNames='1'&gt;";&lt;br&gt;&lt;br&gt;   while (odbc_fetch_row($rs))&lt;br&gt;      {&lt;br&gt;	   $g1=odbc_result($rs,"field1");&lt;br&gt;	   $g2=odbc_result($rs,"field2");&lt;br&gt;       $strXML .= "&lt;set name='$g2' value='$g1' color='AFD8F8' /&gt;";&lt;br&gt;   }&lt;br&gt;	$strXML .=  "&lt;/graph&gt;";&lt;br&gt;	&lt;br&gt;	//Create the chart - Column 3D Chart with data from strXML variable using dataXML method&lt;br&gt;	echo renderChartHTML("./Charts/FCF_Column3D.swf", "", $strXML, "myNext", 800, 600, false);&lt;br&gt;?&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;&lt;br&gt;</description><pubDate>Mon, 07 Apr 2008 09:21:22 GMT</pubDate><dc:creator>ardan</dc:creator></item><item><title>Dynamic Chart based on ODBC from Access backend</title><link>http://www.fusioncharts.com/forum/Topic5464-43-1.aspx</link><description>Hi,&lt;br&gt;&lt;br&gt;I just cannot seem to figure this out, the converting to XML is giving me real problems. Does anyone have a short example of pulling data from a recordset using ODBC connection from a access backend......&lt;br&gt;&lt;br&gt;I have lots of web pages on our intranet that use PHP to display table, runs queries etc..... I would like to take some of these table and create a chart based on them...&lt;br&gt;&lt;br&gt;I would appreciate any help...&lt;br&gt;&lt;br&gt;Ardan&lt;br&gt;&lt;br&gt;</description><pubDate>Sun, 06 Apr 2008 19:05:21 GMT</pubDate><dc:creator>ardan</dc:creator></item></channel></rss>