Need a PHP Clock based on mysql datetime

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ositcom
Forum Newbie
Posts: 1
Joined: Thu Aug 30, 2012 12:49 pm

Need a PHP Clock based on mysql datetime

Post by ositcom »

Need a PHP Clock based on mysql datetime

Hello,
I have been stuck in this issue for 3 days now, I have datetime records in a mysql table, I need a php clock which naturally counts down, I mean acts like a clock, but the clock time should be the datetime field value descending by the second, based on the full datetime, from year to seconds

It is not just one record, I made it to display this clock, the problem is javascript, which makes all the 36 records the last record value, it is an ajax pagination, so i will need to do the same on second page, right now ajax is not a prioritty, I can let go of ajax pagination, but need to display the clock

Help is appreciated

Many Thanks
User avatar
Christopher
Site Administrator
Posts: 13596
Joined: Wed Aug 25, 2004 7:54 pm
Location: New York, NY, US

Re: Need a PHP Clock based on mysql datetime

Post by Christopher »

PHP can't do a clock itself because it is a server side language, but it can generate a HTML/Javascript clock with a start time from the database. What code have you done so far on the clock?
(#10850)
Post Reply