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???
kirtan_thakkar
Recommended Answers
Jump to PostHi,
Do you have naming conventions for this text files?
Regards,
Al
Jump to PostI meant how do you name this text files?
Jump to PostYou 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 PostHi,
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 Postoh sorry, please see updated post above.
please replace, joomla for your folder name.
All 17 Replies
avinashzala
-1
Newbie Poster
kirtan_thakkar
avinashzala
-1
Newbie Poster
kirtan_thakkar
ivatanako
1
Junior Poster
kirtan_thakkar
ivatanako
1
Junior Poster
diafol
kirtan_thakkar
ivatanako
1
Junior Poster
kirtan_thakkar
ivatanako
1
Junior Poster
kirtan_thakkar
ivatanako
1
Junior Poster
kirtan_thakkar
diafol
kirtan_thakkar
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.