sql error. How to add autoincrement id to the INSERT |
[eluser]linderox[/eluser]
I followed by this IBM article http://www.ibm.com/developerworks/openso...index.html but i receive this answer from the mysql database Code: Error Number: 1062 here is a database structure Code: CREATE TABLE `guestbook` ( this is Insert function: Code: function addContact(){ if i use id in this data array it will insert all data succsesfully, but I don't want to care about id number - it is primary auto_increment key. How to solve problem?
[eluser]pistolPete[/eluser]
Try the following: Code: $data = array(
[eluser]linderox[/eluser]
[quote author="pistolPete" date="1235658896"]Try the following: Code: $data = array( nothing happend - the same error I recieved. on another forum on man recommend me to make this one Code: SHOW TABLE STATUS LIKE 'guestbook'
[eluser]pistolPete[/eluser]
[quote author="linderox" date="1235659622"]What I should do now?[/quote] How about repairing the database? |
Welcome Guest, Not a member yet? Register Sign In |