Hello and welcome to HCM.
Thank you for your query.
It appears as though you have a gastrointestinal (GIT) infection. This could be causing the semi-solid stools. In some patients, the constant irritation of the gut can put pressure on the bladder, resulting in frequent urination
In my opinion it is best not to self prescribe any medications. It is best to visit a doctor, get diagnosed for any GIT infection that could be present and also get a urine analysis, which would rule out/confirm the presence of a urinary tract infection
I hope I have succeeded in providing the information you were looking for. Please feel free to write back to me for any further clarifications. I would gladly help you.