title: How to log user actions with php and mysql?
body: <p>I'm working on my CMS and I want it to log activities by users and other admins.
  For example: when new user registers or admin makes a new news post -> update last activity.</p>
  
  <p>I want to know what is the best and easiest way.</p>