Painful pimples on back and thighs

Patient: Hi. I have extremely painful pimples on my back under my bra line and my inner thighs. Antifungal creams seem to help a lot, but I can’t seem to find any answers as to what this is. Also need to know the cause, why they are so painful in the first place, and what I can do to prevent them. Thanks.