@ddljohn-- Wow, sorry to hear about that. Tanning bed burns are awful, I know. But hopefully you will get through this fast and without additional problems.
My advice is to go to the pharmacy and purchase a topical aloe vera gel with lidocaine. The lidocaine is important because it's a topical pain reliever. Regular aloe vera gel will help, but the one with lidocaine is going to work even better. It will hydrate and soothe your skin and it will take the pain away.
After the aloe vera gel, you can use natural moisturizers such as cocoa butter or shea butter to moisturize and protect your skin. You're probably going to be experiencing some major peeling in a few days, so the natural moisturizers will help with that.
If your pain gets worse though, you should see a doctor. It might be a second-degree burn which will leave scars. Professional help will be necessary in that case.