﻿<?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   / strange query return / 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 05:38:15 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: strange query return</title><link>http://www.fusioncharts.com/forum/Topic5401-43-1.aspx</link><description>Sorry, sorry, my fault it's a mysql_query type, need to fetch it form the array.&lt;/P&gt;&lt;P&gt;BTW how to delete posts on this forums ???&lt;/P&gt;&lt;P&gt;greetings&lt;/P&gt;&lt;P&gt;PiotrekT</description><pubDate>Tue, 01 Apr 2008 05:21:18 GMT</pubDate><dc:creator>truszcz</dc:creator></item><item><title>strange query return</title><link>http://www.fusioncharts.com/forum/Topic5401-43-1.aspx</link><description>Hi,&lt;P&gt;I'm beginner with FusionCharts, trying to make Pie chart from few boolean (TINYINT) fields in MySQL database. &lt;/P&gt;&lt;P&gt;I'm using PHP dataXML method and getting strange return from query&lt;/P&gt;&lt;P&gt;&lt;SPAN id=_ctl1_ctlPanelBar_ctlIFCode__ctl6_lblTag&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;[ code ]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;&amp;lt;?php&lt;BR&gt;&lt;BR&gt;include("../Includes/FusionCharts.php");&lt;BR&gt;include("../Includes/DBConn.php");&lt;BR&gt;?&amp;gt;&lt;BR&gt;&amp;lt;HTML&amp;gt;&lt;BR&gt;   &amp;lt;HEAD&amp;gt;&lt;BR&gt;      &amp;lt;TITLE&amp;gt;FusionCharts - Database Example&amp;lt;/TITLE&amp;gt;&lt;BR&gt;      &amp;lt;SCRIPT LANGUAGE="Javascript" SRC="../FusionCharts/FusionCharts.js"&amp;gt;&amp;lt;/SCRIPT&amp;gt;&lt;BR&gt;   &amp;lt;/HEAD&amp;gt;&lt;BR&gt;   &amp;lt;BODY&amp;gt;&lt;BR&gt;   &amp;lt;CENTER&amp;gt;&lt;BR&gt;   &amp;lt;?php   &lt;BR&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt; $link = connectToDB();&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;   $strXML = "&amp;lt;chart caption='Ciastko z checków 13' subCaption='Ilosci' pieSliceDepth='30' showBorder='1' formatNumberScale='0' numberSuffix=' sztuk'&amp;gt;";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;  $strQuery = "select count(a_check13) from test01.formret where a_check13 = '0'";&lt;BR&gt;    &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;$a_check13_0 = mysql_query($strQuery) or die(mysql_error());&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt; $strQuery = "select count(a_check13) from test01.formret where a_check13 = '1'";&lt;BR&gt; $a_check13_1 = mysql_query($strQuery) or die(mysql_error());&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;//Generate &amp;lt;set label='..' value='..'/&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;$strXML .= "&amp;lt;set label='Nie' value='" . $a_check13_0 . "'/&amp;gt;";&lt;BR&gt;$strXML .= "&amp;lt;set label='Tak' value='" . $a_check13_1 . "'/&amp;gt;";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;mysql_close($link);&lt;BR&gt;$strXML .= "&amp;lt;/chart&amp;gt;";&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;//Create the chart - Pie 3D Chart with data from $strXML&lt;BR&gt;   echo renderChart("../FusionCharts/Pie3D.swf", "", $strXML, "FactorySum", 600, 300, "1", false, false);&lt;BR&gt;?&amp;gt;&lt;BR&gt;&amp;lt;/BODY&amp;gt;&lt;BR&gt;&amp;lt;/HTML&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;[/ code ]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color=#111111&gt;... and the return is below&lt;/FONT&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;[code]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;INFO: XML Data provided using dataXML method.&lt;BR&gt;XML Data: &amp;lt;chart caption="Ciastko z checków 13" subCaption="by procent" pieSliceDepth="30" showBorder="1" formatNumberScale="0" numberSuffix=" procent"&amp;gt;&amp;lt;set label="Nie" value="Resource id #5" /&amp;gt;&amp;lt;set label="Tak" value="Resource id #6"/&amp;gt;&amp;lt;/chart&amp;gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;[/code]&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;&lt;FONT color=#3333dd&gt;What are those "Resource id #5" &amp;amp; 6 strings ??? Query should return just number of counted rows... &lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#dd3333&gt;&lt;FONT color=#3333dd&gt;and it does&lt;/FONT&gt; &lt;/FONT&gt;&lt;FONT color=#3333dd&gt;when used against database in any other sql query tool...&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#3333dd&gt;greetings&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;&lt;FONT color=#3333dd&gt;Piotrek Truszczynski&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;</description><pubDate>Tue, 01 Apr 2008 03:59:10 GMT</pubDate><dc:creator>truszcz</dc:creator></item></channel></rss>