Can anyone please tell me why the secord part of my script is not updating with value 5. The first part works fine and is updating to value 4.
$goals = 4;
$goalsx = $goals++;
if ( $info['match_score_ga1h'].$info['match_score_ga1a'] == $info['ga1h'].$info['ga1a'] && $info['ga1h'] + $info['ga1a'] <= $goals) {
$result = "UPDATE world_cup_users SET pts_ga1 = '4' WHERE username ='$username'";
echo $goals;
} elseif ( $info['match_score_ga1h'].$info['match_score_ga1a'] == $info['ga1h'].$info['ga1a'] && $info['ga1h'] + $info['ga1a'] == $goalsx) {
$result = "UPDATE world_cup_users SET pts_ga1 = '5' WHERE username ='$username'";
echo $info['match_score_ga1h'] + $info['match_score_ga1a'];
Thanks