DAY 4 PHP PROGRAMMING
http://php.flashwebhost.com/tom/if_else_greater.php
Code:<?php $passMark = '35'; $studentName = 'Tom'; $studentMark = '30'; if ($studentMark > $passMark) { echo 'Congratulations '. $studentName . ' ! You passed exam with ' . $studentMark . ' marks.'; } else { echo ' Sorry! You failed. Good luck next time.' ; }




Reply With Quote

Bookmarks