I have met problem dealing with multidimensional array. Below are the code to store all the data query from mysql to array. May I know is there any idea how to calculate how many different module name in the multidimensional array and break the status into 2 column which are late and present? The SQL query get the data from a complex table which store all ModuleName and different status. I need to categories them and show in a table. So basically I need to check how many module in the array and how many late or present for the module.
while($array = mysql_fetch_array($result)){
$list[] = array(
"ModuleName"=>$array['ModuleName'],
"status" =>$array['Status']
);
}
This is the sample of expected result