Jump to content

Global Time


tubs2222

Recommended Posts

Hey guys,

I've been faced with a problem on my site with a little count down script:

[a href=\"http://nationwar.awardspace.com/code.txt\" target=\"_blank\"]Code[/a]

btw i'm making a lottery game

When the $ml is equal to zero the person can bid again, the code works and everytime, but the time resets only if the user views the page. For example if the user bids then comes baq the next day it will tell them if they won or not eventhough the bidding duration is only 180 secs. But i'm trying to make the counter go on even though the user does not access the page

I hope i'm not being confusing, if i am please ask me any question regarding the program.

Thank you
Link to comment
Share on other sites

[!--quoteo--][div class=\'quotetop\']QUOTE[/div][div class=\'quotemain\'][!--quotec--] But i'm trying to make the counter go on even though the user does not access the page [/quote]

Store their last accessed time in a database.. and the time at which they can vote again, and every time they access the 'Bid' page, get their data and make sure 180 seconds haven't passed..

You basically have the general idea in the code, you just need to store it for later retrieval.
Link to comment
Share on other sites

[!--quoteo(post=355066:date=Mar 14 2006, 04:33 PM:name=keeB)--][div class=\'quotetop\']QUOTE(keeB @ Mar 14 2006, 04:33 PM) [snapback]355066[/snapback][/div][div class=\'quotemain\'][!--quotec--]
Store their last accessed time in a database.. and the time at which they can vote again, and every time they access the 'Bid' page, get their data and make sure 180 seconds haven't passed..

You basically have the general idea in the code, you just need to store it for later retrieval.
[/quote]

Yes, I have already done that.

I'll try to explain it better, ok for example lets take this case as an example. The countdown starts when you have placed a bet, this is the 1st round. You can not place a bet for another 180 secs. But the problem is that the person will visit the page again in another 1000 secs. Even though they came backk after 1000 secs the round finishes and the second round begins.

What i'm trying to do is if the person doesn't come baq after 180 secs the 2nd round being then the 3rd then the 4h and so on even thought the user is not present.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.