First you have to drink water. There are different types of fast. There is media fast where you abstain from all media like phones computers, laptops, hubpages (hehe), and other forms. There is Daniel Fast, like the name says is related to fasting.
Fasting is to gain favor with God, so if at any point you think its turning into a medical emergency, stop.