Very bad stomach pains

Okay so my boyfriends stomach has been hurting really bad for the last 5 days, he threw up once and whenever he eats he gets really bad stomach pains. What can it be?