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!


Page 1 of 2 12 LastLast
Results 1 to 10 of 17
  1. #1
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default Help [PHP][+Rep]

    Hey

    I want to design a script that will show a client how much time i spend on their project.. So on my admin panel I will click onto the client and view profile then i go to time and there will be a clock... starting at 00.00 and when i press a start button it starts counting up (eg from 00.00 to 00.01 then 01.00 as an hour) then when i press stop it stores it in the database so next time i go on it starts at the time i stopped it...

    Can this be done? I know it can but can someone help me with this bit of code?

    Danny


  2. #2
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luno1599 View Post
    Hey

    I want to design a script that will show a client how much time i spend on their project.. So on my admin panel I will click onto the client and view profile then i go to time and there will be a clock... starting at 00.00 and when i press a start button it starts counting up (eg from 00.00 to 00.01 then 01.00 as an hour) then when i press stop it stores it in the database so next time i go on it starts at the time i stopped it...

    Can this be done? I know it can but can someone help me with this bit of code?

    Danny
    So basically make a script for you for free, and waste our time?

    This is a request, not code help, and it would be in the incorrect forum either way.

  3. #3
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    It will cost £1 per minute it takes to code it. Take around 1hr, 60.00 - Reasonable pricing.
    Hi, names James. I am a web developer.

  4. #4
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    No i dont want you to make it i know how to do that i just need some help with the clock bit..

    I was thinking of puttong the 00.00 in a text field so it can be entered into a database easyerly...


  5. #5
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luno1599 View Post
    No i dont want you to make it i know how to do that i just need some help with the clock bit..

    I was thinking of puttong the 00.00 in a text field so it can be entered into a database easyerly...
    Why do you think it needs to be done by a database? It could be flatfile, it could be stored in a var.

    I'd help you but I don't want to waste time on something that won't help me in anyway, so try uk.php.net/time

  6. #6
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    All im asking for is abit of help... This forum has always helped me before...


  7. #7
    Join Date
    Dec 2007
    Posts
    1,683
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Luno1599 View Post
    All im asking for is abit of help... This forum has always helped me before...
    Yes, but you want all of the time bit done for you which is basically the whole script, nobody has made you a full script; but to save arguing I will not post in this thread again.

  8. #8
    Join Date
    Jun 2007
    Location
    England
    Posts
    495
    Tokens
    0

    Default

    Quote Originally Posted by Independent View Post
    Yes, but you want all of the time bit done for you which is basically the whole script, nobody has made you a full script; but to save arguing I will not post in this thread again.

    Ok fine, but the time bit is only like 2% if the script and im not even selling the script its for my use only.. so yeah...


  9. #9
    Join Date
    Jun 2007
    Location
    Leicester
    Posts
    1,607
    Tokens
    0

    Latest Awards:

    Default

    Quote Originally Posted by Independent View Post
    Yes, but you want all of the time bit done for you which is basically the whole script, nobody has made you a full script; but to save arguing I will not post in this thread again.

    i just read 3 posts and all of them had you being annoying in them..
    if you dont want to help him then dont post..

  10. #10
    Join Date
    Mar 2008
    Location
    Swindon, UK
    Posts
    1,274
    Tokens
    187
    Habbo
    :Ltd

    Latest Awards:

    Default

    Heres some help

    Record the start time $time = time();
    Record the end time $end_time = time();
    Find the difference $new_time = $time - $end_time;
    Work out the minutes = $time = ( $new_time / 60 ) / 60;

    Jebbo = ,,l,
    Hi, names James. I am a web developer.

Page 1 of 2 12 LastLast

Posting Permissions

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