Does the use of suppositories, enemas, or hemorrhoid creams affect the validity of fasting?
Enemas and suppositories inserted through either of the two private passages invalidate the fast. This ruling is based on the statement of Ibn Abbas (may Allah be pleased with him): "Breaking the fast occurs from what enters (the body), not from what exits." [Reported by Al-Bayhaqi in As-Sunan Al-Kubra]
His generalization regarding anything entering the body indicates that it invalidates fasting, whether it is nutritious or not, as even non-nutritious substances resemble food in form.
It is recommended to use them before Fajr or after Iftar. However, if a person must use them while fasting, they should continue refraining from food and drink for the rest of the day and make up for that day later.
Does undergoing an endoscopy during the day in Ramadan affect the validity of fasting?
Undergoing an endoscopic procedure during the day in Ramadan—whether through the mouth, nose, front private part, or back private part—invalidates the fast.
Whoever undergoes such a procedure must refrain from eating and drinking for the rest of the day out of respect for the sacred month and make up for that day after Ramadan.
Is it permissible to offer mandatory prayer while sitting?
All perfect praise be to Allah, The Lord of The Worlds, and may His Peace and Blessings be upon our Prophet Muhammad and upon all of his family and companions. Standing up is a pillar in the mandatory prayer and the prayer is not valid without it unless one cannot do it. As for Nafila (supererogatory prayer), one can perform it in the state of sitting even if he/she can stand, but his/her reward is half the reward of the person who prays while standing if he/sh has no legal excuse for such an act. And Allah Knows Best.
When is Istikharah (guidance prayer) Du`a offered, before Tasleem (saying asalamu alikum warahmatu allah wa barakatuh to end the prayer), or after it?
It is offered after Tasleem.