I need some help.
Playing with doing something in PHP where the resultant query needs to be an array that I'm then going to throw out to Google Charts API to produce some charts.
I'm using a mixture of Dreamweaver and adding bits as I fumble along (I'm not a programmer), but so far the following when used in my page does output to the browser the array of data I'm after, however I want to put this into another string so I can output it as a string elsewhere.
As I said, the above bit works as the printf is showing the data I want, but I want that output to go into another string (shall we say $chartx_values) not the screen.Code:<?php $ResultChartX = mysql_query($query_rsSensorData); while ($row = mysql_fetch_array($ResultChartX, MYSQL_NUM)) { printf("%s,", $row[4]); } ?>
Hope that makes sense, thanks in advance!
Pete



LinkBack URL
About LinkBacks
Reply With Quote

