jukie Posted August 12, 2013 Share Posted August 12, 2013 Hello Good Evening/Morning/Afternoon where ever you are. My problem of the day I have created a register form, the form is working unless I use a data that already stored in the database for a different member, this is the password textbox of the form. Now the database for password is not unique. The problem could be the md5 hash I used for hashing the password. Maybe myphp admin will not allow duplicate data for md5. Any thoughts. Quote Link to comment https://forums.phpfreaks.com/topic/281081-my-dabase-wont-accept-duplicate-data/ Share on other sites More sharing options...
kicken Posted August 12, 2013 Share Posted August 12, 2013 If your table is rejecting duplicates, it is because you defined that column as UNIQUE when you created it. All you need to do is remove that unique constraint and then duplicates will be allowed. Quote Link to comment https://forums.phpfreaks.com/topic/281081-my-dabase-wont-accept-duplicate-data/#findComment-1444550 Share on other sites More sharing options...
Solution jukie Posted August 12, 2013 Author Solution Share Posted August 12, 2013 Thanks, its does look like it got a unique constraint, struggling to drop it. Google my friend. Quote Link to comment https://forums.phpfreaks.com/topic/281081-my-dabase-wont-accept-duplicate-data/#findComment-1444563 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.