iceflyin
07-24-2007, 06:06 AM
'user' is a number, and the index.
$sql="INSERT INTO userInfo (user, rssURL) VALUES ('$_POST[user]','$_POST[rssURL]')";
When I run the code a second time, it gives me:
Error: Duplicate entry '19717633' for key 1
I think I need to have something before it like... Puesedocode: if exists select from userInfo (user), drop rssURL, then insert new rssURL at index(user)
Or, is there a way to overwrite entries?
$sql="INSERT INTO userInfo (user, rssURL) VALUES ('$_POST[user]','$_POST[rssURL]')";
When I run the code a second time, it gives me:
Error: Duplicate entry '19717633' for key 1
I think I need to have something before it like... Puesedocode: if exists select from userInfo (user), drop rssURL, then insert new rssURL at index(user)
Or, is there a way to overwrite entries?