What are the pillars of fasting?
The pillars of fasting are intention and abstaining from all nullifiers of fasting from dawn to sunset.
What is required of one who doubts the number of rakʿāt during prayer?
All praise is due to Allah, and peace and blessings be upon our master the Messenger of Allah ﷺ.
If a person doubts the number of rakʿāt he has prayed, he should build upon the lesser number, as that is what he is certain of. He should then perform the prostration of forgetfulness (sujūd al-sahw) before the final salām at the end of the prayer. ʿAṭāʾ ibn Yasār narrated that the Messenger of Allah ﷺ said: "When any one of you is in doubt during his prayer and does not know whether he has prayed three rakʿāt or four, let him pray one more rakʿah and then perform two prostrations while seated before the salām. If the rakʿah he prayed was a fifth, these two prostrations will make it even; and if it was the fourth, then the two prostrations serve as a humiliation for the devil." (Reported by Abū Dāwūd.)
It is stated in al-Muqaddimah al-Ḥaḍramiyyah — one of the foundational texts of the Shāfiʿī school: "If one doubts whether he has prayed three rakʿāt or four, he is obliged to build upon the lesser number."
However, if such doubt recurs repeatedly and reaches the level of obsessive whispering (waswasah), he should not build upon the lesser number in that case — rather, he should build upon the greater number. And Allah the Almighty knows best.
What is the ruling on entering the toilet with something containing the remembrance of Allah?
It is disliked to bring into the toilet anything containing a reminder of Allah, such as the Quran or a sacred name (like the name of Allah, Muhammad, etc.). If one does that, etiquette dictates that he conceal it so it is not visible while entering the toilet, either by cupping his hands over it, putting it in his pocket, or inside his shirt if it is a necklace or ring. And Allah the Almighty knows best.
A man wishes to offer more than one uḍḥiyah (sacrificial offering), and intends by these sacrifices "on behalf of everyone whom Allah and His Messenger love." Is this intention valid?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah ﷺ.
The uḍḥiyah (sacrificial offering) is not valid with this intention, because if the sacrificial animal is from sheep or goats, it suffices for one person only; and if it is from cattle or camels, it suffices for seven persons.
However, one may sacrifice it on his own behalf, and then gift the equivalent of its reward to whomever he wishes.
Imam ar-Ramlī (raḥimahullāh) says: "Ash-Shāfi‘ī (raḍiyallāhu ‘anh) said: It is within the vastness of Allah's bounty, the Exalted, that He rewards the one giving charity as well. From this, the scholars of the madhhab said: it is recommended for a person to intend the charity on behalf of his parents, for example — for Allah, the Exalted, will reward them, without this diminishing his own reward in any way." He then relates, as the relied-upon position, the permissibility of saying: "O Allah, convey the reward of what I have recited specifically to so-and-so, and to the Muslims generally." Az-Zarkashī said: "For reward varies in degree — its highest form is what one designates specifically, and its lowest form is what one dedicates generally [alongside others]." [End of quote from Nihāyat al-Muḥtāj]. And Allah, the Exalted, knows best.