Robert “Bobby” Cox has been elected as the next mayor of Ocean Springs, according to unofficial numbers from the city clerk.