Results 1 to 10 of 42

Thread: Day 4 - Decision Making - Become PHP Expert in 30 days

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2007
    Posts
    26,214

    Default

    DAY 4 PHP PROGRAMMING

    http://php.flashwebhost.com/tom/if_greater.php

    Code:
    <?php
    
    
    $passMark = '35';
    
    
    $studentName = 'Tom';
    
    
    $studentMark = '60';
    
    
    if ($studentMark>$passMark) 
    
    
    {
    
    
    echo 'Congratulations '. $studentName . ' ! You passed exam with ' . $studentMark . ' marks.';
    
    
    }

  2. #2
    Join Date
    Oct 2003
    Location
    Kochi, Kerala, India
    Posts
    21,389

    Default

    http://php.flashwebhost.com/vineesh/...n_making_5.php

    Code:
    <?php
    
    $rain = 'eeeee';
    
    if ($rain == 'yes') {
    
    echo 'It will rain today.'; 
    
    }
    
    else if ($rain == 'no') {
    
    echo 'It will not rain today.'; 
    
    }
    
    else {
    
    echo 'huh...what is this ?';
    
    }

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •