getByComputerID($ID); PRINT "trackIDs = $trackIDs\n"; $trackIDsSize = sizeof($trackIDs); for($i=0;$i<$trackIDsSize;$i++) { $track2 = new Tracking($trackIDs[$i]); $track2->delete(); } $query = "DELETE FROM computers WHERE (ID = \"$ID\")"; $count = $adb->dbh_do($query); $query = "DELETE FROM inst_software WHERE (cID = \"$ID\")"; $count = $adb->dbh_do($query); $query = "DELETE FROM networking_ports WHERE (device_on = $ID AND device_type = 1)"; $count = $adb->dbh_do($query); logevent($ID, "server", 4, "database", "Record deleted by $IRMName"); ?>