flipmenus
6-24-07, 03:10 PM
for some reason when i try to enter data from the same username it wont add it. if i enter data from a different username it goes through. here is the code...any suggestions? thanks
mysql_query("INSERT INTO stats_nutr VALUES (
'$username','$date','$meal1',
'$meal2','$meal3','$meal4',
'$meal5','$meal6','$calories1','$calories2','$calo ries3',
'$calories4','$calories5','$calories6')");
the error it says is: #1062 - Duplicate entry 'robinson' for key 1
mysql_query("INSERT INTO stats_nutr VALUES (
'$username','$date','$meal1',
'$meal2','$meal3','$meal4',
'$meal5','$meal6','$calories1','$calories2','$calo ries3',
'$calories4','$calories5','$calories6')");
the error it says is: #1062 - Duplicate entry 'robinson' for key 1