Code: Select all
if ( $nrolled >= 1 && $nrolled <= 12)
{
echo "1st Doz";
echo "<br>Doz1 = " . $doz1 . "<br />";
$doz1++;
echo "<br>Doz1 = " . $doz1 . "<br />";
}
When I run the above script $doz1 does not get increased, it's value remains 0.
I also tried doing $doz1 += 1 and it still returns 0.
When I do $doz1 = $doz1 + 1; the value goes from 0 to 1
However it needs to run several times and when I run it again the value goes from 1 to 11 (instead of 2).
Any help would be appreciated.