Need a PHP Clock based on mysql datetime

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

Can you say it all again without contradicting yourself, you want by the sounds of it, you want a cloock thats a clock but desends in time but clocks do not do this.

Maybe you want a clock that counts down from a given time and date ?

I want a clock which is based the value of a mysql datetime field and it is a bid, it calculates the remaining time based on a mysql datetime value

Can you tell me how to convert php timestamp to javascript new date()

Pass it to javascript already converted using mktime() function

Sponsor our Newsletter | Privacy Policy | Terms of Service