}
         // ratingop here
         $rrr = '';
         for ($ri = 0; $ri < 6; $ri++) {
             if (!isset($ros[$ri])) {
                 $ros[$ri] = 0;
             }
             $rrr .= ($rrr ? ',' : '') . 'ro' . ($ri + 1) . '=' . $ros[$ri];
         }
         if ($rrr) {
             $sql = "update ratingop set {$rrr} where roid = {$ooid}";
             $result = $db->query($sql);
             if (!$result) {
                 throw new Exception(DEBUG ? "{$db->error}: {$sql}" : 'Can not update aux answers', __LINE__);
             }
             $opp->rerate();
         }
         if ($mesg) {
             $result = false;
             $mesg = "Please correct the following before proceeding: {$mesg}";
         }
         if ($result) {
             $redir = isset($_POST['submit2']) ? "opportunadmin.php?oid={$ooid}&acct={$uacct}&cid={$usid}&mas={$masid}" : "opportunadmin.php?acct={$uacct}&cid={$usid}&mas={$masid}";
             //$mesg = "Answers updated, please wait a moment... If automatic redirection does not work, please <a href=\"opportunities.php\">click here to proceed</a>.";
         }
         $quest->data_seek(0);
     }
     // not submit
 } else {
     $redir = "opportunadmin.php?acct={$uacct}&cid={$usid}&mas={$masid}";
     //$mesg = "No specialty questions, skipping... If automatic redirection does not work, please <a href=\"opportunities.php\">click here to proceed</a>.";