i have this:
while($row = mysql_fetch_array($result))
{
$post[] = intval($row[counted]);
$descrip = $row[desc];
}
and use $post in this:
$pie->set_values( array($post,new pie_value($post[1], ".$descrip.")) );
but i get this result:
values": [ [ 1, 1, 1, 1 ], { "value": 1, "label": ".PROCESADOR INTEL CELERON G530." } ] } ]
The problem is that the result need to be like this:
values": [ 1, 1, 1, 1 , { "value": 1, "label": ".PROCESADOR INTEL CELERON G530." } ] } ]
I have to remove the [ ] of the post array. How can i do this?