SYNOPSIS

int MGOinssponsor (Validation *val)

DESCRIPTION

The MGOinssponsor() function inserts a new sponsor record. Information is passed through val. The required fields are:

val.validid is the validation id. val.sponsid is the sponsor's validation id. val.source_code is the sponsor validation source reference code. val.status_code is the validation status reference code.

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

MGOdelsponsor(), MGOselrvalstatus(), MGOselrvalsource(), MGOselsponsor(), MGOupdsponsor(), MGOzero()