I am using php and mysql and have no java knowledge. After searching I have found many countdown timers for javascript but they are client-side. I am looking for something that is server-side based. I have a table in mysql with a column called TimeRemaining. That column stores future time records. I need to load the record with the least time remaining so that when it hits zero that record is removed from the table and a new countdown timer begins with the next record with the least amount of time remaining. Also, if a new record is inserted with less time remaining than the previous record with the least time remaining, the timer needs to be updated with the new record. Is this possible and/or recommended through using triggers to update an event in mysql or can I create a countdown timer in php.
Thank you all for any help. Edit: I mentioned Java/Javasript because I would like to avoid it as I have no knowledge of it and through research I have seen most posts using java. For a better understanding of what I want to do, multiple users are banned from creating posts in a forum for 7 days. I have a table in mysql that stores that ban and the time it expires. I need to automatically remove that record from the table when the 7 days expires. The user should have no control over this timer. I do not need to display the time remaining on a webpage. I need this to happen in the background with no user intervention. Is that clearer ?