Quote Originally Posted by annie View Post
http://php.flashwebhost.com/annie/if...reater_bug.php

Code:
<?php
$passScore = 210;
$studentName = 'Mike';
$studentScore = 190;
if ($studentScore > $passScore) {
echo 'Congratulations' . $studentName . 'You passed the exam with' . $studentMark . 'mark.';
} else {

echo 'Passing Score is'  .  $passScore . '.Your Score is' . $studentScore ; 

echo '<br>';

echo 'Sorry You did not pass the exam. Good luck and Cheers next time. ';
}
echo 'Congratulations' . $studentName . 'You passed the exam with' . $studentMark . 'mark.';
On this line, you have $studentMark, this variable is not defined (created/used) in that program.. It should be replaced with $studentScore.

Use tab for indent code inside { and }, refer my code. Code inside { and } is called code block, must be indented (press TAB key).