Ive seen many posts explaining to use array_unique but i dont think that will work with my scenario...
I have multiple results in this report, if you notice from my picture the ST/OT has duplicate 1.50 and 2.00 values because each sql entry has 1.50 and 2.00 for each st_ot cell
At the bottom where it totals up, obviously now from $stot_total += $data["stot"];. It is adding up the total. But what I really want is the total of 1.50 + 2.00 (3.50). I dont want it to add the duplicates.
All the ones that are 1.50 have the same ID# as well, so if theres a way to only add values from ID#1, then ID#2, then ID#3 and so on... that would work for me...
i apologize for this horrible post... this question is regarding the ST/OT values only **
foreach($dary as $data){
$stot_total += $data["stot"];
}

$daryvariable (byvar_dumporprint_r)