Duplicate enry "username" for key "1"

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
myaudiodna
Forum Newbie
Posts: 1
Joined: Wed Nov 17, 2010 6:36 pm

Duplicate enry "username" for key "1"

Post by myaudiodna »

I've tried everything I could think of to resolve this issue and just can't solve it. I created a CMS, but I get this error when I add a user that has been previously deleted. For example, I create a user with username "Alicia", then I no longer need that username so I delete it. Then later I get another person named alicia, but when I try to add a user again with username Alicia, I get this error. This only happens when the username has been previously deleted. I don't have the username field set as unique in the database and it is also not set as a key. Any ideas?
User avatar
califdon
Jack of Zircons
Posts: 4484
Joined: Thu Nov 09, 2006 8:30 pm
Location: California, USA

Re: Duplicate enry "username" for key "1"

Post by califdon »

Not without analyzing the code logic for the CMS, which might be several days' worth of work, for which there probably won't be many volunteers to do for you.
Post Reply