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>>
Monday, April 14 2014 8:19 PM EDT2014-04-15 00:19:35 GMT
Video of a contestant on 'Wheel of Fortune' is quickly going viral - but not because of how impressive his performance was. Julian Batts, a freshman at Indiana University, repeatedly failed to solve puzzlesMore >
Video of a contestant on 'Wheel of Fortune' is quickly going viral - but not because of how impressive his performance was.More >
Tuesday, April 15 2014 6:18 PM EDT2014-04-15 22:18:05 GMT
Flooding was a big concern for a number of communities across the state Tuesday. A flood warning was in effect for Hartford and Middlesex counties while a flood watch was issued for Hartford, Tolland andMore >
Flooding was a big concern for a number of communities across the state Tuesday.More >
Monday, April 14 2014 10:41 PM EDT2014-04-15 02:41:58 GMT
Emergency crews are investigating after potentially hazardous chemicals were located in a home in Fairfield Monday night. Authorities were called to "potential residential HazMat incident" at 32 ClintonMore >
An elderly man was found dead at a home in Fairfield following a possible exposure to cyanide.More >
Tuesday, April 15 2014 8:57 AM EDT2014-04-15 12:57:55 GMT
The mayor of Hartford was in the hot seat Monday after a city charge card was found to be used to pay for a funeral. Mayor Pedro Segarra was approached about helping a city employee pay for the privateMore >
The mayor of Hartford was in the hot seat Monday after a city charge card was found to be used to pay for a funeral.More >
Tuesday, April 15 2014 8:51 PM EDT2014-04-16 00:51:28 GMT
The father of a 2-month-old baby, who suffered life-threatening injuries, was arrested in connection with that investigation Tuesday. Police were called to 798 Capitol Ave. for "a report of an unresponsiveMore >
The father of a 2-month-old baby, who suffered life-threatening injuries, was arrested in connection with that investigation Tuesday.More >
Tuesday, April 15 2014 1:39 PM EDT2014-04-15 17:39:10 GMT
The students at Sport and Medical Sciences Academy, which is a magnet school in Hartford, are being released early after a power outage Tuesday afternoon.A power outage was reported in Hartford and causedMore >
The students at Sport and Medical Sciences Academy, which is a magnet school in Hartford, are being released early after a power outage Tuesday afternoon.More >
Tuesday, April 15 2014 2:04 PM EDT2014-04-15 18:04:29 GMT
The Department of Energy and Environmental Protection is warning motorists in the Southington to be on the lookout for a moose on the loose. DEEP said the animal was spotted Tuesday morning on West StreetMore >
The Department of Energy and Environmental Protection is warning motorists in the Southington to be on the lookout for a moose on the loose.More >
Saturday, April 12 2014 6:07 AM EDT2014-04-12 10:07:09 GMT
An incredible photo snapped Saturday at the iconic Pipeline on Oahu's North Shore is going viral. A mother humpback whale and her calf were cruising just offshore when a set rolled in. J.T. Gray of NorthMore >
An incredible photo snapped Saturday at the iconic Pipeline on Oahu's North Shore is going viral.More >
Tuesday, April 15 2014 3:29 PM EDT2014-04-15 19:29:10 GMT
A former Major League baseball player and ESPN analyst revealed that he was racially profiled by a West Hartford police officer, but it happened within the Hartford city limits. In a story he wroteMore >
A former Major League baseball player and ESPN analyst revealed that he was racially profiled by a West Hartford police officer, but it happened within the Hartford city limits. More >