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.
What is the ruling on swallowing saliva while fasting?
It is permissible for a fasting person to swallow their saliva because avoiding it would cause undue hardship and excessive strictness in religion. Islam discourages such excessiveness since Allah the Almighty intends ease for His followers and does not intend to put them in hardship.
Can I start fasting based on the moon sighting of another country?
You must follow the moon sighting of the country you are in.
What is the ruling on performing istinja' after passing wind from the anus?
Ablution is invalidated by passing wind from the anus, even without a smell. Only ablution becomes obligatory from it. Istinja' is not obligatory nor recommended. And Allah the Almighty knows best.