Thanks for your query.Based on the facts that you have posted it appears that you have developed infection of the foreskin (Posthatitis) due to improper personal hygiene.
There is a constant secretion of serous fluid from the glands located in glans penis
.If not cleaned everyday it accumulates beneath the foreskin and gets infected.
Please take broad spectrum antibiotics along with anti inflammatory medication like Diclofenac
twice daily .
Get the prescription of medicines from your family Physician.
Ensure to clean your genitals with warm water twice daily.