Help me, you need to tell your parents or another adult. Believe it or not, pain like this can often be caused by an overabundance of gas building up in your digestive system. There are other things that can cause pain under the ribs, such as gall stones in your gall bladder, but you would need a doctor's examination to determine this. For the time being, I recommend you lay down. Just enduring pain itself can make you feel dizzy. If it is gas, which is not to be taken lightly because it can be extremely painful, it will eventually pass. But, eat something like crackers that will help break the gas down. You might also be developing problems within your colon. If this is the case, eating the crackers will help 'move' the process along. You don't want to take this lightly, because whatever the problem is, it will return and each time the pain will become harder and harder to tolerate.
get your appendix checked out
You may have a peptic ulcer or a hiatal hernia you should see a doctor for an evaluation of your symptoms. In the meantime you could try an antacid.