Updated

A 14-year-old boy was arrested after dialing a wrong number and offering to sell drugs to the person on the other end -- who happened to be a police detective.

After the call, Gulfport detective Matt Parks arranged to meet the teen in the parking lot of a school to buy an ounce of marijuana and some crack cocaine, a police report said. When the boy showed up, he was arrested on charges of possession of 18 grams of marijuana with intent to distribute within 1,000 feet of a school.

The 22-year-old driver of the car the boy was riding in was arrested as a principal, as well as for driving with a suspended license.

Parks' phone number is unlisted, and there were no similar phone numbers found in the boy's cell phone, police said. Detectives said the boy, whose name was not released, likely dialed a random number to try to drum up new business.

Parks said Tuesday that the boy has been released from custody.