ROCKINDANO Posted March 9, 2010 Share Posted March 9, 2010 Hello, I am trying to create a "A to Z" directory page on a web site that has a number of pages. I would like for the directory page to show a list displayed inline. Example of it here: abc | def | ghi etc.... so when clicked on the def link the page displays all the pages with those letters. Can someone help me with this, in showing me how to get started or point me a direction where i can get ideas on how to start or do this page? Link to comment https://forums.phpfreaks.com/topic/194651-creating-a-a-to-z-directory-page/ Share on other sites More sharing options...
mikesta707 Posted March 9, 2010 Share Posted March 9, 2010 How are your pages stored? are you using glob or something to get the pages, or are there names stored in a database table? edit: an example with glob $glob = glob("{f,q}*.*", GLOB_BRACE); print_r($glob); will show all the files in the scripts directory that start with f or q (any extension accepted). this should give you an idea of where to start Link to comment https://forums.phpfreaks.com/topic/194651-creating-a-a-to-z-directory-page/#findComment-1023731 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.