@maggie1972,
Get a second opinion. And with this other doctor have her blood pressure and sugar checked. If those both come back okay, then it might also mean she's a bit dehydrated. If it's none of those, then ask the doctor about
vasovagal syncope.
I am not a doctor but I have
vasovagal syncope. It's essentially harmless. I tend to not get to the point of fainting; it's more that I feel kind of "checked out" if that makes any sense. Your daughter might get a similar feeling just before she faints.
Also, if she faints a lot, she probably shouldn't get a driver's license, or surrender hers if she already has one. This is for her own safety and the safety of others.