Question
A-Z listing advice needed
Hi, I need to create an A-Z listing of a members directory
where I will have A, B, C and so on all the way to X, Y, Z. When a
user clicks on B for example, I want it to take the user to a page
where it filters out all surnames in the database other than those
that begin with B.
I know I can build 26 pages, one for each letter in the alphabet, but that just seems uneconomical. I am certain it can be acheived with one page and I filter via a recordset, but I can't get my head around it!
I'm thinking I have to do a wild card selection along the lines of:
SELECT *
FROM members
WHERE surname is LIKE 'MM_Param'
and the parameter passed would be 'B%' when B is clicked.
But that means building 26 'Got to Detail Page' links doesn't it?
Is the answer as basic as having to build 26 different pages? That seems like a lot of effort for something that seems simple. Any advice would be great and if you know of any tutorials that would be even better.
Thanks
Mat
I know I can build 26 pages, one for each letter in the alphabet, but that just seems uneconomical. I am certain it can be acheived with one page and I filter via a recordset, but I can't get my head around it!
I'm thinking I have to do a wild card selection along the lines of:
SELECT *
FROM members
WHERE surname is LIKE 'MM_Param'
and the parameter passed would be 'B%' when B is clicked.
But that means building 26 'Got to Detail Page' links doesn't it?
Is the answer as basic as having to build 26 different pages? That seems like a lot of effort for something that seems simple. Any advice would be great and if you know of any tutorials that would be even better.
Thanks
Mat
