GAFFNEY — A 28-year-old Cherokee County man who sold $10 worth of crack to an undercover informant has been sentenced to life in prison without parole under the state’s repeat offender law.

Prosecutors said James R. Byers Jr. was sentenced Wednesday after he was convicted of third offense distribution of crack cocaine and distribution of crack cocaine within a half mile of a school or park.

Byers’ record shows five prior drug convictions.

Prosecutors said Byers’ sold the crack to an informant in August 2009 near an elementary school. Cherokee County sheriff’s deputies videotaped the transaction.