Trying to add some new input fields but it won't overwrite.
SQL Error
Duplicate entry 'Testman' for key 2
PHP Code:
sql_query("INSERT INTO users (username, donated, donoruntil, vip_until) VALUES ($username, $donated, $donoruntil, $vip_until)") or
sqlerr(__file__, __line__);
$res = sql_query("SELECT id FROM users WHERE username=$username");
$arr = mysql_fetch_row($res);
if (!$arr)
stderr("Error!", "Unable To Update Account.");
header("Location: $BASEURL/userdetails.php?id=$arr[0]");
die;
Any ideas ?