I'm building my own authentication system. Right now I have my database setup to log each login timestamp by:
$query = 'UPDATE `users` SET login_log = concat(login_log, ?) WHERE userKey = ? LIMIT 1 ';
$vars = array(time().',', $this->userKey);
$QH = $this->DBH->prepare($query);
$QH->execute($vars);
Is it bad to use concat()
to log data in longtext
field?
Should I be doing this a different way?
Are there any problems I might run into down the road with this method?