Congratulations on earning your OW certification!
It's very common for beginner divers to have ear issues during/after class. Reasons for this include: improper equalization technique, distractions during class, and poor buoyancy control. (A small percentage of the population have ear anatomy that hinders middle ear equalization. In such cases, an ENT should be consulted.) Basic OW instructors should spend more time teaching students ear equalization techniques and educating them about ear anatomy. The pinch-the-nose-and-blow Valsalva method is generally the only method taught. Unfortunately, that particular method isn't always the best technique for everyone. I recommend that you watch Dr. Edmond Kay's video entitled "
The Diver's Ear Under Pressure," read his tutorial on "
The Prevention of Middle Ear Barotrauma," and then try out
every ear equalization technique he describes. Of the 7 methods he lists, the Roydhouse maneuver has worked best for me. You need to find out what technique works best for you. You'll be surprised how much easier and more enjoyable diving becomes when you aren't dealing with ear pain.
As for your current situation...
It's impossible to say with certainty what is wrong without a good ear exam (preferably by an ENT), but what you describe seems to be consistent with minor middle ear barotrauma (barotitis media). Sometimes such an injury will involve a small perforation of the eardrum. If that occurs, you really shouldn't be diving at all. Sometimes a significant amount of fluid can build up behind the eardrum. In such cases where a physician suspects infection, you might be prescribed antibiotics.
With any ear barotrauma, it's prudent not to put yourself in situations where your ears are subjected to dramatic ambient pressure changes (flying, diving, etc.).
Treatment-wise, over-the-counter systemic decongestants might give you some relief. Pseudoephedrine (Sudafed) is a common med in this class.
If your condition isn't getting any better after a few days (or is getting worse), schedule an appointment with a medical professional.
Hope this helps...