DAY 4 PHP PROGRAMMING
http://php.flashwebhost.com/tom/if_else_greater_bug.php
Code:<?php $passMark = '35'; $studentName = 'Tom'; $studentMark = '35'; 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