You are probably having urinary tract infection. It could be due to cystitis, urethritis, kidney stones, prostatitis, bladder infection or urinary tract infection. Sexually transmitted infections can also cause such pain. Depending upon the cause of your symptoms, you may need antibiotics or he may advise you to drink plenty of water and prescribe pain killers. This is merely an advice and not a substitute for clinical examination. It would be best to see your urologist for further evaluation and after a specific cause is identified, it can be managed accordingly.Early diagnosis and treatment will be helpful. This is only an advice and not a substitute for clinical examination. For more assistance and queries seek the opinion of an expert. I hope it helps. Keep me posted. Best luck and regards!