if($row['best']){
$id = $row['best'];
} elseif($row['average']){
$id = $row['average'];
} elseif($row['bad']){
$id = $row['bad'];
}
If row['best']
is null
, I need $id
to equal the 2nd best. If 2nd best is null, $id
is equal to the next best.
$row
variable come from? I can imagine that there might be a possible solution where the problem can be fixed elsewhere in your code. \$\endgroup\$