i want to make a multiple choice. the score will be in percentage, but i have conditionals. if the score = 100% then in the end will be displayed "C2 Proficiency". but if run and if i get score more than 30% then displayed "A1 Beginner". the script are not working. please help
here is the code:
<?php
if ($persentaje == 100){
$hasil="C2 Proficiency";
}
if ($persentaje > 80) {
$hasil="C1 Advanced";
}
if ($persentaje > 60) {
$hasil="B2 Upper Intermediate";
}
if ($persentaje > 50) {
$hasil="B1 Intermediate";
}
if ($persentaje > 40) {
$hasil="A2 Pre Intermediate";
}
if ($persentaje > 30) {
$hasil="A2 Elementary";
}
else {
$hasil="A1 Beginner";
}
?>