Jump to content

A-Z listings


Ameslee

Recommended Posts

Hello hope someone can help me.  I havent done anything like this before, can anyone tell me how i would display a A-B-C list that people can click on and it displays whatever corresponds to that letter.  You know what i mean? also on the page a drop down list that displays services than once clicks on displays what comes under that service.  They are both coming from the database, just looking up different rows, i suppose.  Can anyone help me?

Thanks

Link to comment
https://forums.phpfreaks.com/topic/30417-a-z-listings/
Share on other sites

how could you get much simplier then that. although personally i would've used ASCII.

[code=php:0]
for($i = 65; $i <= 90; $i++){
echo "<a href='sort.php?sortby=".chr($i)."'>".chr($i)."</a>";
}
[/code]

check out the ASCII table at: http://en.wikipedia.org/wiki/ASCII
Link to comment
https://forums.phpfreaks.com/topic/30417-a-z-listings/#findComment-144138
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.