title: Insert dates in MySql database table?
body: <p>I'm building a login application, and I want to store the date the user registered and the last login date as well as the last login ip. </p>
  
  <p>When creating the table what type should I give each of these three columns?</p>
  
  <p>How would I proceed when I insert a new username and other data?</p>
  
  <p>Should I use PHP to get the register date or should I use mysql's current date?</p>
  
  <p>For the last login date and ip, what way do I do it?</p>