Glossary A-Z web page

Hopefully a quick and easy one for a PHP wizz!

I want a nice, elegant layout for a glossary page. The glossary items are already in the database, I don't need any management tools or systems. I can list out the glossary items from the dataset $faq_items simply by:

$ctr = 1;

for($i = 0; $i < count($faq_items); $i++) { ?>

<a href="[url removed, login to view];?=$faq_items[$i]['faq_id'];?>"><?=$faq_items[$i]['faq_question'];?></a><br /><br />

<? $ctr++; }

However, I would like it set out much neater than that. Ideally the page should have a clickable A B C D E F G etc at the top of the page, and then format something like:

--------------- (<hr>)

A [anchor point here, linking from the A B C D links at the top of the page]

[all glossary items beginning with A]



[ all glossary items beginning with B]


I could hack this, but I am sure that there must be a neat, elegant way of doing it.

Hopefully that's enough info?

Compétences : PHP

en voir plus : web page format, web format, $t z, sure web, nice systems, format web, quick web, info systems, top of page, a b, info g, hr systems, hack web, Glossary, ctr, page database, web count, page list, format web page, web layout management

Concernant l'employeur :
( 5 commentaires ) Pagham, United Kingdom

Nº du projet : #325291