title: How to display time in x days ago in php
body: <p>I want to show last seen in user's profile in my php page. I am storing user's logout time in database as 2014-01-06 15:25:08 (store in <code>$last_log</code>) with DATETIME datatype. Now i want to display last seen x mins ago. And it's auto update in x day ago, x month ago.</p>
  
  <p>I want same as here when we add comment &amp; its time ".......ago" updates.
  How can i display this.</p>