How to prevent dizziness and nausea in the gym?

Last time I went to the gym and I almost fainted, really need some advice on how to avoid that.

How to prevent dizziness and nausea in the gym?
Post Opinion