Discover Habbo's history
Treat yourself with a Secret Santa gift.... of a random Wiki page for you to start exploring Habbo's history!
Happy holidays!
Celebrate with us at Habbox on the hotel, on our Forum and right here!
Join Habbox!
One of us! One of us! Click here to see the roles you could take as part of the Habbox community!


Results 1 to 4 of 4

Thread: Bit of help

  1. #1
    Join Date
    Feb 2007
    Posts
    2,941
    Tokens
    0

    Latest Awards:

    Default Bit of help

    Right i want to make a form so i can add numbers into a database and this adds then to the total all ready.

    so what i want is a form and say i put for 4 in it will add it to what is all ready in the database. I then want it to show me how mutch is in the database.

    What i a doing is a fund wich i set money aside and i want to be able to add how mutch mponey i earnt in the day ect into this database then i can keep track on how mutch i have.

    + rep if anyone can do this

    Thanks
    Hayd93

  2. #2
    Join Date
    Sep 2008
    Location
    UK
    Posts
    3,670
    Tokens
    0

    Latest Awards:

    Default

    This is quite easy, you use math in php with the plus sign being * so whatever amount they submit, query the database for the amount already in there then use the mysql_fetch_array function to fetch the info. Display this by using something like:
    $array[current] * $amount

    Then display the current amount using the same function but not adding the amount submitted, if this makes sense.

  3. #3
    Join Date
    Feb 2006
    Location
    Scotland
    Posts
    2,087
    Tokens
    138

    Latest Awards:

    Default

    Don't you use a mac? Why don't you use Cha-Ching?

    I understand its not the same as like something on the web but its really useful - If Cha-Ching wont do then ill +rep whoever does this for you too lol

  4. #4
    Join Date
    Feb 2007
    Posts
    2,941
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Johno! View Post
    Don't you use a mac? Why don't you use Cha-Ching?

    I understand its not the same as like something on the web but its really useful - If Cha-Ching wont do then ill +rep whoever does this for you too lol
    Ye i know about that just would prefeer a web based sort of thing. And anyway with a bit of fiddleing worked out what to do so + rep to both.

Posting Permissions

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