Thanks for query,
Your symptoms is of bladder infection.
You need a medicine to correct it so consult your doctor.
The pain is after 1 week of your period so there is no question of miscarriage
For your baby you should require to consult gynecologist he will ask you for semen test ,Sonography
& other test & guide you accordingly.