The if condition checking must be done using ==
or ===
operator.Because =
is used to assign something.So try this
if($d == 2){
$dayznum = $dayznum2;
}
3
solved PHP if($d=2) not working
The if condition checking must be done using ==
or ===
operator.Because =
is used to assign something.So try this
if($d == 2){
$dayznum = $dayznum2;
}
3
solved PHP if($d=2) not working