Good morning HashCode.
How to make a countdown of how much time has passed since (for example, adding news), I did so
$date = date("G:i:s", time() - $res["date"]) echo $date;
But the trouble is that even if I add the current time to the database, the counting begins, and not from 0 hours 0 minutes and 0 seconds, but immediately as if I sent a message 2 hours ago, that is, the countdown does not go from zero, but from 2