function delete_interested_party($entity, $entityID, $email) { // Delete existing entries list($email, $name) = parse_email_address($email); $row = interestedParty::active($entity, $entityID, $email); if ($row) { $ip = new interestedParty(); $ip->read_row_record($row); $ip->delete(); } }