SYNOPSIS

int MGOinsqna (Qna *qna)

DESCRIPTION

The MGOinsqna() function inserts a new question&answer record. Information is passed through qna. The required fields are:

qna.uwnetid is the uwnetid name. qna.ordinal is the qna's ordinal (question number). qna.question is the question dialog text. qna.answer is the answer digest (20-byte SHA1 string).

RETURN VALUE

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

ERRORS

AUTHENTICATION LEVEL

wmango

SEE ALSO

MGOdelqna(), MGOselqna(), MGOupdqna(), MGOzero()