我想做出多项选择。得分将以百分比表示,但我有条件。如果分数= 100%,那么最后将显示“C2熟练程度”。但如果运行,如果我得分超过30%,然后显示“A1初学者”。该脚本不起作用。请帮助PHP如果语句脚本
这里是代码:
<?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";
}
?>
*如何*是它不工作? –