Hello,
The symptoms are suggestive of urinary tract infection. Abstain from masturbation for a few days, take plenty of fluids and take some OTC analgesics like ibuprofen or diclofenac. Also take pyridium for 2-3 days(it stains the urine orange) and sit in warm non soapy water. Also consult a doctor for antibiotics prescription if the symptoms persist.
If the symptoms persist then urethritis has to be ruled out. You need a complete physical examination and investigations like complete urine examination, urine culture, swab specimen from the genitalia and ultrasound lower abdomen to find out the cause. Please consult a urologist for that.
Hope it helps. Take care and please do keep me posted on how you are doing or if you have any additional queries. Kind regards.
umm well it might be a urinary track infection i know guys can get those to and it burns when u pee so i mean u can't really do anything about it until ur appointment but if it gets really bad i would suggest going to the ER because if it is a UTI that can spread to ur kidneys and u can get really sick from it