In order to receive higher level enchantments in the enchanting menu, you must place bookshelves around the table. The highest level enchantment is level 30 (introduced in Minecraft 1.3), is only possible with 15 bookshelves placed one block away from the table in a 1 high, 5 by 5 square, with an opening for a door.