I am trying to update the last login date in my database each time a user logs into the website. It currently updates the LastLogin with a null value?
Why does the below code not work?
$this->mysqli->query("Update adminusers SET LastLogin = DATE('yyyy-mm-dd') WHERE Username = 'admin'");
Thanks!