http://php.flashwebhost.com/annie/if_else.php
PHP Code:
<?php
$winningScore = 200;
$playerName = 'Mariya';
$palyerScore = 240;
if ($palyerScore > $winningScore) {
echo 'Congratulation ' . $playerName . '! You got ' . $palyerScore . ' Points. The minimum score is ' . $winningScore. ' . You are selected for next level.';
} else {
echo 'Sorry!, Try again';
}
Bookmarks