nec9716 Posted April 4, 2008 Share Posted April 4, 2008 Hi guys.... what that mean ... Can't run query because Duplicate entry '0' for key 1 I ahve try to change few things ...but I turn around for about 1 hrs with that..... Link to comment https://forums.phpfreaks.com/topic/99622-solved-duplicate-entry-0-for-key-1/ Share on other sites More sharing options...
bryan52803 Posted April 4, 2008 Share Posted April 4, 2008 Show us some code. More likely than not, you're leaving the ID field of your table blank when inserting data, and auto-increment isn't enabled on that column. Bryan Link to comment https://forums.phpfreaks.com/topic/99622-solved-duplicate-entry-0-for-key-1/#findComment-509631 Share on other sites More sharing options...
nec9716 Posted April 4, 2008 Author Share Posted April 4, 2008 Ok you're rigth I have forget to set ID auto increment thank you Link to comment https://forums.phpfreaks.com/topic/99622-solved-duplicate-entry-0-for-key-1/#findComment-509633 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.