Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Robert Walker
17,146 PointsMySQL and duplicate entries.
I have a signup page and when inserting the data into the database it seems to be ignoring the unique table restriction.
Username, email, empid and website URL should be unique and the database should not allow duplicates to be entered.
Ive tested inserting with phpmyadmin and it says clearly that I can not insert duplicate entries but when running it through my website it allows them to get through.
I check the database and there it is all 4 fields that should be unique yet have the same data over and over for all my attempts.
I try to insert with phpmyadmin again and I cant.
Its so strange, does anyone know why its doing this?
1 Answer
Elijah Collins
19,457 Pointsuse the delete table
Robert Walker
17,146 PointsRobert Walker
17,146 PointsNot sure why I would want to delete the table, im just trying to make rows in the table not accept duplicate entries.