Click here to Skip to main content
15,885,910 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
There are 2 "technical_id" which one of the status is "status" = 1 and the other one is "status" = 0. How to check if both submission status is not empty, its return true. If one of the submission status is empty, it return false. The problem is it just read one submission status for both ID.

What I have tried:

$ListTaskPerformance = array();

if (!array_key_exists($row['staff_id'],$ListTaskPerformance[$row['department']])){
$ListTaskPerformance[$row['department']][$row['staff_id']][$row['technical_id']] =  array();
			}

$ListTaskPerformance[$row['department']][$row['staff_id']]['technical_id'] = $row['technical_id'];
$ListTaskPerformance[$row['department']][$row['staff_id']]['performance_isvalid'] = false;

if ($row['technical_id'] > 0 && $row['hod_technical_status'] == 2){
$ListTaskPerformance[$row['department']][$row['staff_id']]['performance_isvalid'] = true;
}
Posted

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900