A flashing yellow light on your PS3 is often compared to the "red ring of death" that Xbox owners know so well. Unfortunately, it usually means your PS3 is either broken or simply overheating and needs to cool down.
First, try letting it rest and cool off completely, then power it back on. If it still won't work, it likely needs a professional repair. The good news is that if your PS3 is brand new, you should contact Sony and complain, they may offer a free repair or replacement. Otherwise, repairs through Sony can run around $130 out of pocket.
If you bought it from a retailer like Walmart and it's faulty right out of the box, go back and speak with them about a refund or exchange. Either way, you'll need to get it sorted before you can get back to gaming. Sorry you're dealing with this!