prepare($aquery); if($sth) { $res = $sth->execute(); $numRows = $sth->rows(); for($i = 0; $i < $numRows; $i++) { $result = $sth->fetchrow_hash(); $cID = $result["ID"]; $query3 = "INSERT INTO comp_group VALUES ($cID, $sID)"; $result3 = $adb->dbh_do($query3); } } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } PRINT "The add to group operation has been completed."; commonFooter(); ?>