How do you get rid of bloating?

I feel very bloated and its very painful and i dont feel like eating at all. And tgis has neen lasting for over 24hrs