Hi,
I’m having an issue, I’m trying to display mysql data with a php query in some javascript to display a chart.
this is my php:
[php]$query = “SELECT * FROM stats”;
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_array($result)){
echo $row[‘values’] . ", ";
}[/php]
The return generates the following:
10000, 20000, 15000, 5000, 20000, 23000, 10000,
That result has to remove the last ", " so the new result is:
10000, 20000, 15000, 5000, 20000, 23000, 10000
Can someone plz help?
Thanks