dynamic php coding to get the pages

dynamic php coding to get the pages