Thanks for your question.
Discharges and pains you experience with urination are simply symptoms of urethritis. This is caused by inflammation of urethra. Causes can be infection of various types. It is better to consult with your doctor for a swab test and urinalysis for identifying the causative organism. Antibiotics will surely help with this. Drugs prescribed depends on the type of infection and your health condition. Within a few days, symptoms of your issue will be cleared. But it is advised to take the full course of medicine as recommended by your doctor. You should drink a lot of cranberry juice and water. Take care.