How to get rid of foul-smelling, white discharge from the penis?

I have a white discharge from my penis, and it has a foul odor. Is it due to gonorrhea or STD?