Food poisoning

How do i know if I have food poisoning? And if I do, how long will it last?