Duplicate entry '0' for key 1
Posted 03 December 2003 - 10:14 AM
So I installed the forum and then wrote a php script for the new users to register and I want it to insert the info into the forum members table.
But I can\'t seem to get around this:
Duplicate entry \'0\' for key 1
I\'m using ipb forum.
Posted 04 December 2003 - 02:13 AM
Make sure the form process page that puts the info into the tables in like:
INSERT INTO table (id,name,email,whatever) VALUES (\'\',\'$name\',\'$email\',\'$whatever\');
Notice the value for ID is blank, because the database auto matically does that for you...
OR if you don\'t know PHP...
Delete the \"unique\" and other kets from the table, uning PHPMY Admin lol, not the best solution, but I do not know what else to suggest
Posted 04 December 2003 - 07:55 AM
Thanks for the tip.
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users