Lots and lots of water, gatorade, and even cranberry juice.
If you ate something bad and have food poisoning you can dehydrate really fast (my stepdad ended up in the hospital from that a few years ago).
If it doesn't get better you should really see a doctor.