WEB ATTN: PHP Crew: I suck at teh math, please help figuring out discount %

Discussion in 'OT Technology' started by nubian, Feb 14, 2009.

  1. nubian

    nubian Active Member

    Joined:
    Aug 11, 2003
    Messages:
    27,761
    Likes Received:
    1
    for example

    i'm doing this in php.

    shirt cost $25.00
    if more than 10 are purchased, a 5% discount will be applied to to the total amount of shirts purchased.

    i've been trying to set this up in php but my math processing just ain't working right now.

    please help
     
  2. Limp_Brisket

    Limp_Brisket New Member

    Joined:
    Jan 2, 2006
    Messages:
    48,422
    Likes Received:
    0
    Location:
    Utah
    $total -= $total * .05;

    ???
     
  3. nubian

    nubian Active Member

    Joined:
    Aug 11, 2003
    Messages:
    27,761
    Likes Received:
    1
    thanks
     

Share This Page