What kinds of medications are safe for a child who has panic attacks?

SSRIs. Ssris like sertraline, fluoxetine, and citalopram are preferred, but only in more severe cases such as when the attacks prevent normal activities like school attendance. Other anxiety drugs like benzodiazepines are not recommended because of their potential side effects and other issues such as withdrawal and abuse potential. Behavior therapy is the treatment choice and is generally successful.
SSRI's. Typically, selective serotonin reuptake inhibitors (ssri) meds are the first thing tried, although there are other options as well. Examples include zoloft /sertraline, celexa/ citalopram, lexapro/ escitalopram, paxil/ paroxetine, prozac/ fluoxetine.