<Table> <Tr> <Th> Year </Th> <Th> Title </Th> <Th> Dylan's role </Th> <Th> Cole's role </Th> <Th> Notes </Th> </Tr> <Tr> <Td> 1993--98 </Td> <Td> Grace Under Fire </Td> <Td_colspan="2"> Patrick Kelly </Td> <Td> Main role; 72 episodes </Td> </Tr> <Tr> <Td> 1998 </Td> <Td> Mad TV </Td> <Td> Kid </Td> <Td> Kid </Td> <Td> 2 episodes </Td> </Tr> <Tr> <Td> 2000--02 </Td> <Td> Friends </Td> <Td> N / A </Td> <Td> Ben Geller </Td> <Td> 7 episodes </Td> </Tr> <Tr> <Td> 2001 </Td> <Td> The Nightmare Room </Td> <Td_colspan="2"> Buddy </Td> <Td> Episode: "Scareful What You Wish For" </Td> </Tr> <Tr> <Td> 2001 </Td> <Td> That' 70s Show </Td> <Td> Bobby </Td> <Td> Billy </Td> <Td> Episode: "Eric's Depression" </Td> </Tr> <Tr> <Td> 2005--08 </Td> <Td> The Suite Life of Zack & Cody </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Lead role; all 87 episodes </Td> </Tr> <Tr> <Td> 2006 </Td> <Td> The Emperor's New School </Td> <Td> Zam </Td> <Td> Zim </Td> <Td> Voice; episode: "Oops, All Doodles / Chipmunky Business" </Td> </Tr> <Tr> <Td> 2006 </Td> <Td> That's So Raven </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Episode: "Checkin' Out" </Td> </Tr> <Tr> <Td> 2008 </Td> <Td> According to Jim </Td> <Td> Himself </Td> <Td> Himself </Td> <Td> Episode: "I Drink Your Milkshake" </Td> </Tr> <Tr> <Td> 2008--11 </Td> <Td> The Suite Life on Deck </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Lead role; all 71 episodes </Td> </Tr> <Tr> <Td> 2009 </Td> <Td> Wizards of Waverly Place </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Episode: "Cast - Away (To Another Show)" </Td> </Tr> <Tr> <Td> 2009 </Td> <Td> Hannah Montana </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Episode: "Super (stitious) Girl" </Td> </Tr> <Tr> <Td> </Td> <Td> I'm in the Band </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Episode: "Weasels on Deck" </Td> </Tr> <Tr> <Td> 2011 </Td> <Td> The Suite Life Movie </Td> <Td> Zack Martin </Td> <Td> Cody Martin </Td> <Td> Television film </Td> </Tr> <Tr> <Td> 2012 </Td> <Td> So Random! </Td> <Td> Himself </Td> <Td> Himself </Td> <Td> Episode: "Cole and Dylan Sprouse" </Td> </Tr> </Table> <Tr> <Th> Year </Th> <Th> Title </Th> <Th> Dylan's role </Th> <Th> Cole's role </Th> <Th> Notes </Th> </Tr> <Tr> <Td> 1993--98 </Td> <Td> Grace Under Fire </Td> <Td_colspan="2"> Patrick Kelly </Td> <Td> Main role; 72 episodes </Td> </Tr> <Tr> <Td> 1998 </Td> <Td> Mad TV </Td> <Td> Kid </Td> <Td> Kid </Td> <Td> 2 episodes </Td> </Tr>

Who played cody on suite life on deck