I recently migrated Godaddy servers and have run into nothing but problems, all but this have now been solved...
I'm getting a 500 error on my login and signup pages, this is the code from my login page, without this part which updates to the database, the error is not thrown. It never used to happen on the last server, have I used some bad practice here?
PHP Code:
$update_stmt = $con->prepare("UPDATE users SET last_login = :lastLogin WHERE username = :username");
$update_stmt->bindParam(':username', $uname, PDO::PARAM_STR);
$datum = new DateTime();
$lastLogin = $datum->format('Y-m-d H:i:s');
$update_stmt->bindParam(':lastLogin', $lastLogin, PDO::PARAM_INT);
$update_stmt->execute();
Thanks in advance!