S
S
Semyon Kataparov2016-04-24 16:42:43
PHP
Semyon Kataparov, 2016-04-24 16:42:43

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);

Doesn't throw an error.
Here is phpMyAdmin: https://gyazo.com/dc0c1fd3053d01fec6d4f97790e48a08

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Drozhdin, 2016-04-24
@truexizt1

Your request says:
Check if this is the issue?

C
Cat Anton, 2016-04-24
@27cm

steamid, nickname, joined, balance, totalBought, banned, admin -- 7 columns
'$steamid', '$nickname', '$current_date', '0', '0', '0' -- 6 values

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question