Hello,
I am trying to get the remainder of a field from the modulus of 5 to populate additional table headers.
if((count($val->type) - count($val->type != "N/A")) % 5){
$reporthtml .= sprintf("<td align=\"center\" nowrap=\"nowrap\"> </td>");
}
In the implimentation
there are 8 fields
6 are N/A and 2 are good so I have 2 populated headers but I need to populate the other 3 with the empty space. However I could have 5 values so I am just trying to get the current amount and then fill the remaining with empty space.
Any help would be great.