My daughter has had a fever on and off for 2 days and is complaining of leg and stomach pain. What can it be?

Evaluation. She should see her pediatrician to be evaluated to find the cause so be treated.
Mgt. She may have the flu or another viral illness. If the fever and aches continue or become focal she should see her physician right away. Please keep her well hydrated and rested.