Active Record, Auto Increment problem |
[eluser]Unknown[/eluser]
Hello! I am trying to insert a row into my database, the first time I tried it worked but the following times it did not. It does not work because one of the fields is an auto increment and CI gives it a value of 0 as default. I have looked in the documentation but I can not find anything. This is my code: Code: $new_account_insert_data = array( My tables has theses fields: id (the auto increment one which I do not send in the query), username, password, email This is the error message I get: Quote:A Database Error Occurred Thank you. |
Messages In This Thread |
Active Record, Auto Increment problem - by El Forum - 12-18-2009, 07:21 AM
Active Record, Auto Increment problem - by El Forum - 12-18-2009, 07:58 AM
Active Record, Auto Increment problem - by El Forum - 12-18-2009, 08:11 AM
|