Skin infections can cause painful, swollen feet and ankles. Cellulitis is a bacterial infection of the skin that causes pain, swelling, and redness in the affected area. People with diabetes are ...