Loss of appetite

Ive noticed that in the last week i havent been able to eat anything substancial. I cant tolerate the smell of food or even the thought of eating it. I dont throw up or anything but because im not eating as i should i get really gassy n my stomach hurts. I have to b having milky stuff that r a bit filling but still isnt enough.
So frustrated. No clue what to do