The bible never said anything about a flat earth.
If it did, then show me the exact quote. If it has to do with a "four corners of the world" type of mention, which is what I've been lead to assume is the culprit, well, then, you need to take a lesson in metaphors and figures of speech before you jump to conclusions. Not everything ever uttered by man, and perhaps even God, is literal.