//if the returned data from mysql is 1 in case of city: if(City == 1) { format(CityString,sizeof(CityString),"Canada"); }