Answer the question
In order to leave comments, you need to log in
What is wrong with writing a user to the database?
What is wrong with writing a user to the database?
$steamid = $steamprofile['steamid'];
$nickname = $steamprofile['personaname'];
$current_date = date("l dS of F Y h:i:s A");
$query = "INSERT INTO users (steamid, nickname, joined, balance, totalBought, banned, admin) VALUES ('$steamid', '$nickname', '$current_date', '0', '0', '0', '0') ON DUPLICATE KEY UPDAYE nickname = '$nickname'";
$userInfo = mysqli_query($connect, $query);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question