1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Simple PHP Script Help.

Discussion in 'General Programming Chat' started by TheArticleMan, Dec 31, 2014.

  1. TheArticleMan

    TheArticleMan Power Member

    Joined:
    Aug 18, 2011
    Messages:
    588
    Likes Received:
    297
    Occupation:
    Writing
    Location:
    London - UK
    Hey guys this is a simple question I hope.

    I basically have a revenue goal I want to reach and want a simple html/php page for this. So like reaching 100 and everytime I get revenue in I can submit that amount and it would update to X/100 for example.

    How would I go about coding this? (there are probably scripts/apps like this but I want a simple html page on my website).

    Not looking for someone to code it just help in what method to use to code it (as I'm learning to code slowly lol).

    Thanks.
     
  2. sssteve

    sssteve Registered Member

    Joined:
    Oct 24, 2014
    Messages:
    57
    Likes Received:
    15
    Home Page:
    I would use a simple MYsql Database, but you might want to search add to total in php on google
     
    • Thanks Thanks x 1
  3. acidol2

    acidol2 Supreme Member

    Joined:
    Sep 8, 2011
    Messages:
    1,322
    Likes Received:
    835
    Location:
    My Successful Future
    Yea was gonna say, a simple database would work. But if its only one number, you can just update a text file in your website directory,
    then have that php script read the current revenue you have, and do the calculations you need, based off that number.