if ($cantnotas > $mia['notas']) { $status = 0; } elseif ($cantnotas == $mia['notas']) {$status=0;} else { $status = 7; } }