What is the ruling on someone who eats or drinks thinking that the night is still present, then realizes that dawn has broken?
Whoever eats or drinks thinking that the night is still present, then later discovers that dawn has broken, must refrain from eating and drinking for the rest of the day out of respect for the sacred month. However, they must make up that day after Ramadan, and there is no sin upon them.
What is the ruling of Islamic Law on supplicating with other than the transmitted (Ma'thur) supplications in prayer?
All praise is due to Allah, and peace and blessings be upon our master, the Messenger of Allah.
It is permissible to supplicate (make du'a) during the prayer for anything from the affairs of religion or worldly life, and the prayer is not invalidated by doing so.
Shaykh al-Islam, the Imam an-Nawawi, may Allah have mercy on him, says: "Our madhhab [i.e., the Shafi'i madhhab] holds that it is permissible for a person to supplicate during it [the prayer] with anything that is permissible to supplicate with outside the prayer, from the affairs of religion or worldly life. He may say: 'O Allah, grant me wholesome sustenance, offspring, a house, and a beautiful young wife' — describing her; or: 'O Allah, free so-and-so from prison,' or 'destroy so-and-so,' and other such things — and none of this invalidates his prayer according to us. And this is also the view of Malik, ath-Thawri, Abu Thawr, and Ishaq." [Al-Majmu', Vol.3/P.454]. And Allah, the Exalted, knows best.
What is the ruling on swallowing phlegm while fasting?
If a fasting person intentionally swallows phlegm, their fast is invalid, as it is possible to avoid it.
However, if they swallow it unintentionally, their fast remains valid.
Phlegm is impure and should be avoided.
What is the ruling on wiping the white area behind the ears instead of wiping the head?
The obligation in ablution is to wipe some of the head; it is not a condition to wipe all of it. Wiping the white area behind the ears suffices for that. And Allah the almighty knows best.