I have an employee list on my intranet that, well, lists all the employees. I'd like to do a navigation strip at the top that would have the alphabet, with each letter hyperlinking to that section of the page (ie A B C d ... where A, C and D are links but B isnt because there's noones name starting with a 😎.
A couple of things - can i do this in a loop where the effect is something like "$letter = A ; $letter++" will get me to B?
Secondly, and more importantly, what's the best way of doing it? Assuming I could get the above bit to work then I think I could query the database each time for surnames that start with that letter, but wouldnt that be a really slow way of doing it?
Is there some option that I havent thought of?
Many thanks in advance for assistance.