How do I create a countdown, and compare todays date/time with a date/time in a database?

Joined
Aug 22, 2025
Messages
12
Reaction score
0
Hello.

Just a quick query.
I'm trying to build/create a very basic auction element/expiry time.

I've got a date and time stored in a database, and what I'd like to do is:-
1. Check, is the date in the database table the same as today's date?
2. if so, countdown the hours, minutes, and seconds to zero.

What I've got so far, is very rough. at present load the database table into a html table (using php), and checked if the data in the database table/field is the same as today's date. If so, add the record into the html table.

I'm just a little stuck with creating the countdown, and using todays date and time and comparing it with the date/time in the database to create a countdown and to refresh the countdown to zero.

Could anyone please advise me?
Thank You.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,359
Messages
2,571,476
Members
48,794
Latest member
Lonell Lee

Latest Threads

Top