View Single Post
  #1  
Old 31st May 2009, 11:58
wrestleman wrestleman is offline
Member
 
Join Date: May 2009
P2P
Posts: 8
Default TBdev Small Problem
Trying to add some new input fields but it won't overwrite.

Click the image to open in full size.

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 ?

Reply With Quote