you are having candidal balanoposthitis
It is caused by fungus, candida albicans.
There seems secondary bacterial infection also.
You should be investigated to rule out DM, HIV
and other internal diseases.
Take anibiotics for two weeks.
Take antifungal and anti inflammatory drugs.
Apply initially antibiotic cream ,after clearance of bacterial infection, apply anti fungal cream.
Take a sitz bath in dettol
Improve immunity with immunobusters.
If the infection relapses, you may go for circumcision
Avoid extramerital relationships.
I hope you got my answer.
Dr. Ilyas Patel MD