title: Lastlogin not updating on login
body: <p>I'm not sure what I am doing wrong, basically when the user logs in I'm trying to update the "lastlogin" field in the users database.</p>
  
  <pre><code>$login = login($username, $password);
      if ($login === false) {
          $errors[] = 'That username/password combination is incorrect';
      } else {
          $_SESSION['user_id'] = $login;
          $sql = "UPDATE `users` (lastlogin) VALUES ('now()') WHERE `user_id` = $user_id";
          header('Location: index.php');
          exit();
      }
  </code></pre>