A recent CBS News report shows a dramatic rise in the number of school shootings in the past 13 years.
That report also found that in three out of four school shootings, the suspect walked right in through the main entrance.
Today's schools are challenged to determine how best to keep kids safe.
CBS 5 Investigates found many are responding in a way that could be putting children in danger.
"You're not safe anywhere. You need to be prepared for anything," said a parent in Mesa.
In some Arizona school districts, officials are putting up fencing and gates without permits and locking up exit routes critical in an emergency.
"It's probably been around the last six months that we caught up with the process of them actually locking the gates with chains and locks. People need to be able to get away," said Arizona State Fire Marshal Bob Barger.
Barger says too many schools are locking bad guys out and, in the process, locking children in.
He gave CBS 5 Investigates photos showing doors being secured with heavy chains and padlocks, which are clear violations of the state's fire code.
"When you lock it and chain it, that egress pass is impeded, and they can't get out, and you can't get away," said Barger.
CBS 5 Investigates contacted several fire departments across Arizona. Their responses indicate it's a dangerous practice on campuses everywhere.
"The challenge of keeping kids safe is probably not knowing what the next incident will be," said Helen Hollands with Mesa Public Schools, the largest district in the state.
According to sources, the district is the state's worst offender.
The State Fire Marshal says Mesa has a history of noncompliance dating back to 2011. In June of this year, the district had outstanding violations at 16 schools.
Hollands said the purpose of the chains and locks was to prevent individuals from entering the campus.
She cites getting the funds from a bond passed last November as the reason it's taken so long to fix the fire code violations.
CBS 5 Investigates was along for the ride for an inspection in Chandler with Assistant State Fire Marshal Frederick Durham. He showed the markings where a school had previously installed a heavy-duty chain and lock and then had it removed.
"We don't want to create a situation where, because of security, we cause tragedy," said Durham.
Nearly everyone understands the difficult balance schools must attain in trying to keep kids safe.
However, fire officials say breaking the law won't fix the problem.
"Their hearts were in the right place, but we can't allow security to interfere with safety," said Durham.
The Arizona State Fire Marshal's office said that because of the inquiries from CBS 5 Investigates, Mesa Public Schools has ramped up their efforts to get the proper permits and fix the violations.
They also say because of budget cuts, school inspections are running about three years behind.
Copyright 2013 CBS 5 (KPHO Broadcasting Corporation). All rights reserved.
CBS 5 INVESTIGATESAZ schools' safety efforts might be endangering studentsMore>>
Tuesday, July 29 2014 9:20 AM EDT2014-07-29 13:20:26 GMT
U.S. Marshals are joining the manhunt for an Arizona inmate who escaped from a central Arizona jail.More >
U.S. Marshal David Gonzales of the Arizona District said Thursday that federal agents will work with local officials to locate Wade Cole Dickinson, who escaped from the Camp Verde Detention Center at around 2:30 p.m. on July 12.More >
They were born just two weeks apart. A 10-week-old baby and 8-week-old pit bull have a fascinating relationship. They absolutely adore each other! Louisiana native Brandi Hodges, 25, has posted photosMore >
A 10-week-old baby and 8-week-old Pitbull have a fascinating relationship. They absolutely adore each other!More >
Tuesday, July 29 2014 9:38 AM EDT2014-07-29 13:38:06 GMT
Arizona Attorney General Tom Horne is asking for a temporary restraining order on the office of Maricopa County Attorney Bill Montgomery to keep MCAO from investigating allegations of campaign mismanagement.More >
Arizona Attorney General Tom Horne is asking for a temporary restraining order on the office of Maricopa County Attorney Bill Montgomery.More >
Tuesday, July 29 2014 9:53 AM EDT2014-07-29 13:53:10 GMT
Change is in the wind for the quiet border town of San Luis, AZ. The farming community may soon be home to a massive solar wind tower.More >
Change is in the wind for the quiet border town of San Luis, AZ. The farming community may soon be home to a massive solar wind tower - the sheer enormity of which would make it a new Arizona landmark.More >