JEET Report post Posted January 17, 2011 Hi, I am trying to install power chart. I have done every thing but at the last two step I have stucked. I am installing power chart's candelstick chart. Chart data will arrvice from mysql and my page is in php. I have fetched data from mysql and succseefully able to print it by echo. I thought that I will do x value like this on the script $count= count($data['open']); ($x=$count; $x<=$count; $x++) and this willl increase x value in the chart's xml script. But When I am using count I am getting prompt as 11. If I have fetched two row then count appearing 11 if 3 then 111. One more thing I am unable to do I tried to merge mysql data with dom xml Text node foreach something like that $fdata= $data['open']; foreach($fdata as $key=>$value){ $element=$dom->createTextnode($value); $rootElement->appendChild($element); } Can any one tell me that how should I increae x value depending fetched data from mysql and how to I place fetched data with text node. Please can any one help me about this? Thanks Share this post Link to post Share on other sites