Hello and welcome to JustAnswer, I shall be consulting you today.
Yellowish discharge from vagina and pain during sex.
These symptoms suggest an infection.
These infections can be sexually transmitted or non sexually transmitted.
The only way to find out is to have a swab test for this.
This will help in diagnosing the exact type of infection.
These infections can easily be treated with antibiotics however the treatment should not be delayed because if delayed the infection can spread or become worse.
Avoid sexual intercourse till this is treated.
Make an appointment with your GP.
You will need an antibiotic for this.
Let me know if you have any questions.
If done for now please do take a moment to click on the stars on the top left of this thread to rate this positively with 5 stars.