I'm sorry if my questiontitle isn't so clear to you. I'll explain it.
I have a table named POSTS, posts has a columnname with date (date) and time(time) , date has the format :y-m-d and time h:i:s
Now I would like to get something like : this post was posted .... seconds ago.
I have fives variables:
$date1 = $row['date'];
$time1 = $row['time'];
$postdate = ???
$today = CURRENT_DATE();
$minutes = ???
My questions are: - How do I convert $date1 and $time1 into one date? - How can I calculate the difference between $postdate and $today?
Thank you very much.