I needed a counter from a specific day to the stopping of the countdown.

In what language it will be easier, and less code - better, I think it would be easier in PHP.

What I need: I enter the day, and from that day on it is counted, but to display it like this: 30 days 12 hours.

You will also need to display this counter on the page. Tell me how to display it, with the design of the text on the CSS will understand.

PS counter will be separate for certain records so that I can output several at the same time, for example 30 and the results were different everywhere.

  • Nobody will write code for you here, it’s better for you to contact freelancers or conquer the Internet. Here they solve problems and help to understand the issues, and not to write their ideas “for so” for someone / to perform d / s, etc. - Legionary
  • I asked what language it would be better to do? And how best to implement to display several counters on different pages. - Julia Randall

1 answer 1

In order for the counter to work in the browser without reloading the page, javascript is needed. Had to do such counters.

The initial parameters of this script should be taken from an element with a specific class, from the data property, for example. And the php code in which you need to specify the end date of the bill should display such elements on the page.