It looks like your daughter is having urinary tract infection
; as she is crying while passing urine, presence of fever
Regarding swelling under her left ear; it can be lymph
nodes but until and unless examination is done; we can not diagnose it.
So consult pediatrician
, if she is having urinary tract infection, she needs antibiotics to cover up.
Give her lots of fluids.