while update a form i got this error. can anyone help me?

Re: while update a form i got this error. can anyone help me?

by Davo Smith -
Number of replies: 0
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The error message states that the record you are attempting to update has no 'id' field specified - you can have a 'candidate_id' field as well, if you want, but there must always be a field called 'id' (which must always be an auto-incrementing integer and the primary key for the table).

Assuming you use the XMLDB editor to write your DB install/upgrade code (which you always should do), this will be added for you.