Results 1 to 10 of 42

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

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #11
    Join Date
    Nov 2009
    Posts
    76,596

    Default

    http://php.flashwebhost.com/sherly/discount.php

    Code:
    <?php 
     $over65=true; 
     $price = 3.00; 
     if ($over65) 
     { 
     $discount =.90; 
    echo  "You have received our senior's discount, your price is $" . $price*$discount; 
     } 
     else 
     { 
    echo "Sorry you do not qualify for a discount, your price is $" . $price; 
     } 
     ?>
    Last edited by sherlyk; 05-13-2014 at 07:30 AM.

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
  •