if(isset($_SESSION["steamid"])) {
$loggedIn = true;
$steamid = $_SESSION["steamid"];
$nickname = $_SESSION["personaname"];
$avatarfull = $_SESSION["avatarfull"];
mysqli_query($connect, "INSERT INTO users (steamid, name, avatar) VALUES ('$steamid', '$nickname', '$avatarfull')");
}
else {
$loggedIn = false;
}
Fatal error: Uncaught exception 'mysqli_sql_exception' with message 'Duplicate entry '76561198131980154' for key 'PRIMARY'' in C:\OpenServer\domains\localhost\index.php:26 Stack trace: #0 C:\OpenServer\domains\localhost\index.php(26): mysqli_query(Object(mysqli), 'INSERT INTO use...') #1 {main} thrown in C:\OpenServer\domains\localhost\index.php on line 26