Number increment

Discussion in 'PHP' started by le007, Apr 16, 2012.

  1. #1
    Hi all,

    Anyone know any simple PHP code that would have a number incremtor like what's here on the top right of the page:

    Thanks.
    http://clickbank.com
     
    le007, Apr 16, 2012 IP
  2. vineld

    vineld Greenhorn

    Messages:
    53
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    18
    #2
    What do you mean? Increment simply means to add 1...

    $number = $number + 1;

    There's your incrementor...
     
    vineld, Apr 17, 2012 IP
  3. bledileka

    bledileka Peon

    Messages:
    35
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    or simply:
    $number++;
     
    bledileka, Apr 17, 2012 IP
  4. Grit.

    Grit. Well-Known Member

    Messages:
    1,424
    Likes Received:
    22
    Best Answers:
    1
    Trophy Points:
    110
    #4
    the above codes will only increment the number by one.

    You'd want to have a php script that is constantly querying the database for the amount paid, and display it using some AJAX... So in order to complete your task, you'll want to use php and either Javascript or JQuery
     
    Grit., Apr 17, 2012 IP
  5. le007

    le007 Well-Known Member

    Messages:
    481
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    103
    #5
    Hi everyone,

    thanks for your replies.


    Could someone give me some simple code that would just read a figure from the database and constantly increase it when the site is loaded?

    Something really simple please.
     
    le007, Apr 17, 2012 IP