title: PHP MySQL Storing a login history
body: <p>I have an existing PHP MYSQL login system for a site. I want to record the history of every user login including failed attempts. </p>
  
  <p>I want to capture the following data on the history:</p>
  
  <ol>
  <li>username used</li>
  <li>Time logged in</li>
  <li>Date logged in</li>
  <li>Successful - (answerable by yes or no)</li>
  </ol>
  
  <p>How can I do this without changing my entire existing login system?</p>