thanks for your query.
U needs to drink a lot of water. Get your urine routine test done & also fungal stain of a smear from the tip of penis & of urine also.
For a proper diagnosis it's necessary to look the site. You may get the tests done under guidance of an urologist.
Wish you good health.
Three possibilities are there. Starting from the simplest, it can be due to a urinary tract infection, urethritis and lastly a prostatic infection. Drink plenty of water and fluids and wear cotton clothes. Refrain from intercourse for a few days and use mild soaps and detergents.
If the symptoms persist then get a urine examination, urine culture, culture of the expressed prostatic secretions (EPS) , prostate Specific Antigen (PSA) test and a complete STD panel.
I hope it helps. Take care and regards.