prepare($query); if($sth) { $res = $sth->execute(); $numRows = $sth->rows(); for($i = 0; $i < $numRows; $i++) { $result = $sth->fetchrow_hash(); $cID = $result["ID"]; $query3 = "DELETE FROM comp_group where (comp_id = $cID)"; $result2 = $adb->dbh_do($query3); } } else { PRINT "Could not prepare query: ".$sth->errstr."
\n"; } PRINT "The delete from group operation has been completed."; commonFooter(); ?>