son.of.the.morning Posted October 28, 2010 Share Posted October 28, 2010 I have posted one set of values into my database and it worked fine but when i input another set they wont go inside unless i changes the value of the primary index colum. I want to be able to insert a new values regardless of the primary index value. Any idears...? Link to comment https://forums.phpfreaks.com/topic/217148-mysql-query-not-inserting-a-new-set-of-values-into-database/ Share on other sites More sharing options...
joel24 Posted October 28, 2010 Share Posted October 28, 2010 are you trying to set the primary key on the insert query? or is it an automatically incrementing field? Link to comment https://forums.phpfreaks.com/topic/217148-mysql-query-not-inserting-a-new-set-of-values-into-database/#findComment-1127764 Share on other sites More sharing options...
Pikachu2000 Posted October 28, 2010 Share Posted October 28, 2010 A primary key index should be an auto incremented integer. There's no reason you should be specifying its value. Link to comment https://forums.phpfreaks.com/topic/217148-mysql-query-not-inserting-a-new-set-of-values-into-database/#findComment-1127765 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.