I was treated for a STD 2 days ago and I still have discharge and painful urinating?

Takes time. It takes time for the irritation and pain to go away after treatment. Your doctor may be able to prescribe something to take away the pain with urination. Ultimately, if the symptoms are persistent you may need to be re-treated. Best wishes.