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 3 of 3

Thread: PHP Login Count

  1. #1
    Join Date
    Nov 2005
    Location
    Edinburgh
    Posts
    11,690
    Tokens
    0
    Habbo
    Pyroka

    Latest Awards:

    Default PHP Login Count

    Hi,

    I need some help with a user system I'm making. Basically, I need to code in PHP, a way of recording the amount of times a user has logged into the system (NOT how many users are logged into the system). It wouldn't be a overall statistic, it'd just be for individual users.

    I was thinking of creating a table in my database, but then I'm clueless on how I'd be able to do everything after that LOL. Any help would be appreciated greatly. :]

  2. #2
    Join Date
    May 2005
    Location
    San Francisco, CA
    Posts
    7,160
    Tokens
    2,331

    Latest Awards:

    Default

    Hey Ryan,

    In your user store table, add a new column called something like 'login_amm' and then on each login, run a query like this;

    Code:
    UPDATE `user_store` SET `login_amm` = ( `login_amm` + 1 ) WHERE `userid_column` = '<user_id_value>'
    .

    Hope this helps...

  3. #3
    Join Date
    Nov 2005
    Location
    Edinburgh
    Posts
    11,690
    Tokens
    0
    Habbo
    Pyroka

    Latest Awards:

    Default

    Cheers Simon, I've had 2 people PM me on this so it's another method to try out

    It was Jack120 and Calon by the way, which helped me out... You should recruit them into your coding community nizzle.

Posting Permissions

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