Thanks for asking your concern on justanswer.
What you have is an intertrigo, this can be caused by irritation of the area, bacterial infection or yeast infection.
The treatment for each are different.
Here is what to do:
Hope this helps.
If you need further clarification, please ask. __________________________________
My answer is for your personal information only. It should not be used as a substitute to visiting your doctor. No treatment should be tried without first consulting a doctor.