Danny620 Posted December 12, 2009 Share Posted December 12, 2009 Hi I know PHP very well now and i am wanting to learn Ajax to provide a future for my new PHP Games If someone could provide me with some websites with tut for noobies then that would be great also. Say i have the current date 2009-12-11 23:33:37 and i have a date that is set in the future 2009-11-16 02:20:37 how would i make ajax count down to that date and then refreash the page? Thanks Quote Link to comment Share on other sites More sharing options...
ohdang888 Posted December 12, 2009 Share Posted December 12, 2009 In my opinion, jQuery is the best tool to use when using AJAX, check it out http://docs.jquery.com/Ajax as far as the date goes, 2009-11-16 02:20:37 is not in the future. Nevertheless, you would get the unix timestamp of both dates, subtract them, and thats the amount of seconds between them. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.