If a fasting blood test is ordered, you should not have anything to eat or drink (except water) for at least eight hours. This usually involves an overnight fast.
You should continue to take any prescription medications unless your physician directed you not to take them.
Smoking and exercise may affect your results as well, so you should refrain from these activities as much as possible during this time.
If you have any concerns about refraining from food for this period of time, talk to your physician.