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