I have a complete list of a topics.
I have to create a Index for A B C D E ...
On Clicking those buttons without navigating to another page it shows only topics wich starts from that letter...
How to code it in php???
Member #710047
Recommended Answers
Jump to Post— ivatanako 1Hi,
Do you have naming conventions for this text files?
Regards,
Al
Jump to Post— ivatanako 1I meant how do you name this text files?
Jump to Post— Member #120589You can have a CSS (style) based system if you're not using a backend (files/DB) of any type. This means that you use php to set a classname on a div. This method isn't advised though because all your data is loaded into the page, but only a particular section …
Jump to Post— ivatanako 1Hi,
This should get you started.
<?php if ($handle = opendir(foldername)) { while (false !== ($file = readdir($handle))) { if(substr($file,0,1) == $_GET["start"]) echo $file."\n"; } closedir($handle); } ?>Your link should be like this, http://www.website.com/open.php?start=a for letter A.
…
Jump to Post— ivatanako 1oh sorry, please see updated post above.
please replace, joomla for your folder name.
All 17 Replies
avinashzala -1 Newbie Poster
Member #710047
avinashzala -1 Newbie Poster
Member #710047
ivatanako 1 Junior Poster
Member #710047
ivatanako 1 Junior Poster
Member #120589
Member #710047
ivatanako 1 Junior Poster
Member #710047
ivatanako 1 Junior Poster
Member #710047
ivatanako 1 Junior Poster
Member #710047
Member #120589
Member #710047
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.