Jump to content

Recommended Posts

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.