SYNOPSIS

int MGOupdqna (Qna *qna)

DESCRIPTION

The MGOupdqna() function updates an existing question&answer record. Information is passed through qna. The required and optional fields are:

qna.uwnetid is the uwnetid name. qna.ordinal is the qna's ordinal (question number). qna.question is the question dialog. qna.answer is the answer digest (20-byte SHA1 string). You can only change the last two fields. To change the other fields, you must insert a new record.

RETURN VALUE

Returns the number of records updated upon success or -1 if an error occurred (in which case MGOerrno and MGOerrmsg are set appropriately).

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOdelqna(), MGOinsqna(), MGOselqna(), MGOzero()