I need advice

Sommer
Hello, so my son is 2 and was diagnosed with a double ear infection last Monday so they put him on cefdinir and he started spiking a fever. After 3 days they opted to switch him because they felt it wasn't working so they put him on azithromycin. He is still getting a fever low grade but still. And he is miserable as hell and refuses to eat or drink I am at a loss on what to do. I just got told to take him back to the dr to check for the flu.