A fungal nail occurs when a fungus attacks a toenail, a fingernail or the skin under the nail. Any part of the body can be affected by the fungal infections. According to the American Academy of Dermatology (AAD), toenails are more often affected by the fungal infections than the fingernails, because they are usually confined