$nst is definitely set to 4, as the echo $nst; gives 4.
However, with:
echo $nst;
echo "<br>";
if ($nst= 1) {
$fulls = "Full status for 1";
} elseif ($nst = 2) {
$fulls = "Full status for 2";
} elseif ($nst= 4) {
$fulls = "Full status for 4";
}
echo "Status: " . $fulls;
$fulls is *always* the first one "Full status for 1", even when $nst is 4.
What am I doing wrong?
Thanks,
Ben