Viral infections, like the flu or a cold, can cause inflammation of the airways of the lungs. When this occurs your daughter may cough, especially when she is active or laughs. If a virus were the cause neither of the antibiotics she took would be effective in getting rid of the infection. After the infection is gone, it is possible for the inflammation to linger. This inflammation can last for 2 to 6 weeks. Sometimes this inflammation may linger for 3 to 6 months. Eventually the inflammation will go away, and then the coughing will stop. This is called reactive airways disease (RAD) and behaves a lot like asthma. On a simple breathing test, called spirometry, this may not show up.
A cough lasting just 2 weeks, no matter how severe, is not considered a chronic cough. Usually after at least 4 to 6 weeks then it’s considered a chronic cough. It really is tough for both parent and child to put up with such a cough. Your daughter doesn't need more antibiotics for this or other medicines that might irritate her stomach. She should be given whatever is necessary to relieve her cough. An inhaled steroid medicine, which is given to treat asthma, will often clear this inflammation more quickly. Usually this medicine does not provide immediate relief of symptoms. It may need to be used every day for several weeks to months for it to help. Your daughter’s doctor is the best judge of this.
There can be a definite connection between acid reflux and a continuing cough. I would accept the diagnosis of the pediatric stomach specialist. I suggest that you work closely with that doctor to gain control of the reflux. This could bring a stop to your daughter’s cough.