You're likely thinking of Zoey 101, which starred Jamie Lynn Spears as Zoey Brooks. Emma Roberts was not in that series. Both actresses rose to fame on Nickelodeon around the same time, but they headlined different shows.