We have an events based site which counts downs to events. e.g. 7 days 1:23 left.
We just realised when it goes to "1" day left, the text still shows days e.g. 1 days.
We need some code to check the day such that when it is 1, day to be shown instead of days.
I've attached the code for that events page FYI but will let you into the site once project starts.
backend is mysql.