Go to Settings, General and then hit Lock Rotation. This will prevent your iPhone from rotating from the current mode that it's in. Which means if you're in Portrait Mode then it'll stay in that mode, so be sure you're in the one you want to stay in when you enable the option.