Both manifest as nausea, vomiting, and perhaps abdominal cramps.
Treatments for the two are similar. Food poisoning usually is over wishing 24 hours; viral infections last longer. Click the link below for many helpful details.
“While symptoms of a stomach virus can take days to develop, food poisoning symptoms can occur within 6 hours of eating. People may experience diarrhea, nausea, vomiting, stomach pain and cramps, or a fever. Sickness from food poisoning can last from a few hours to several days, but most cases clear up within a day.People can usually suspect food poisoning if others who consumed the same food are also ill, or they ate unrefrigerated food. Salads, raw or undercooked poultry, eggs, seafood, and other dairy-based products are high-risk foods for food poisoning.”