sounds like you may have sprained a ligament or tendon around your knee. it's difficult to know exactly which one without knowing the precise location of your pain. rest, ice and an antiinflammatory drug such as ibuprofen
can help these particular problems. it usually take 3 -4 weeks for symptoms to improve.