Hello
Thanks for query .You have not mentioned about sexual history in your query
The redness, swelling of foreskin and glans with other symptoms that yo had strongly suggest infection of
glans penis and foreskin (Ballano Posthatitis),
The white discharge that you have is suggestive of Sexually Transmitted Infection and needs to be investigated .
Please consult qualified
Urologist or
Dermatologist and get following basic test done to confirm the diagnosis .
1) Swab test of urethral discharge
2) Blood test for STI .
3) Urine routine and culture .
Continue taking antibiotic like
Erythromycin twice daily along with
topical antibiotic ointment Neosporin for local application .
Ensure to wash your genitals with warm water twice daily.
Ensure to avoid sexual encounters till it heals up completely.
Further treatment will depend upon result of these tests and final diagnosis.
Dr.Patil.