Adding items to a multi-dimensional array during query while loop

Project

New Member
I have a query returning data that looks like this:\[code\]Status TotalSuccess 234Failed 20Missing 12\[/code\]I want to add this to an array which can then be used to populate a google pie chart.the array would look like this:\[code\]array backup = array("Success" => 234), ("Failed" => 20), ("Missing" => 12);\[/code\]How would I add these item dynamically at each row in a query?
 
Back
Top