Based on the facts that you have submitted it appears that you have what is called as Paraphimosis
associated with infection and necrosis of the outer layer of foreskin due to constricting band at the level of coronal sulcus..
Are you Diabetic ? If you have not done your Blood Sugar levels earlier get it done now to rule out the same.
1)Please take some antibiotics like Doxycyclin twice daily with oral anti fungal medication
2)Take some medication like Tab Serropeptidase to reduce the edema at he site of infection.
3)Clean the entire area with antiseptic solution like Betadine
twice daily.and Use some topical antibiotic
for local application over affected area.
4)Apply anti fungal gel(Mecanozole) on inner side of thighs
I think this will reduce the infection and once that happens you have to undergo surgery of Circumcision
.Please consult your family Physician to get prescription of these medications.