Dibatalkan

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]

---------------

B

[ all glossary items beginning with B]

etc.

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

Hopefully that's enough info?

Kemahiran: PHP

Lihat lebih lanjut: web page format, web format, sure web, nice systems, format web, quick web, info systems, a b, info g, hr systems, hack web, glossary, ctr, page database, web count, page list, format web page, web layout management, info web page, web info, count web list, web page database, elegant web, quick count, php web management

Tentang Majikan:
( 5 ulasan ) Pagham, United Kingdom

ID Projek: #325291