php multiple if conditions

前端 未结 5 1984
既然无缘
既然无缘 2021-01-29 11:16

when i try to filter all these parameters php only enters in the first if conditions, ignoring all others conditions.

if($t_red<0){
    $t_red=0;
}

else if($         


        
5条回答
  •  误落风尘
    2021-01-29 12:13

    It's not clear what you're trying to do, but I think that you would want to remove the else before the third if statement and add an else before the sixth if statement.

提交回复
热议问题