Jump to content

Alphabetical Anchor Tags


dtyson2000

Recommended Posts

Afternoon!

 

This is probably something very straightforward but I haven't been able to locate a resource. I have a list of names and would like to provide a set of links (alphabet at the top of the list) to the first instance of a last name starting with that letter. The (a href='#s') jumping to (a name='s') isn't the issue. Grabbing the names from the database and dynamically grabbing the first instance of a last name that starts with the next letter and inserting the 'a name=' tag is.

 

Is there a resource for this anywhere that you can point me to?

 

Thanks, ahead of time!

Link to comment
Share on other sites

Aside from the basic query and output, no I haven't started because I'm not sure how to go about analyzing each result (well I guess I can figure that part out) and then limit the action needed (the insertion of a string of html) to just the first instance of the letter A, then B, etc.

 

Sorry this may sound vague.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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