Click to See Complete Forum and Search --> : [RESOLVED] Glossay a|b|c


Avihai
01-18-2008, 05:31 AM
Hi all,

I have a db with two main fields in a table (name and id).
I want to create a list of links a|b|c|d ...
and when the user clicks on a letter he would get all the names starting with this letter, example:

"a" was clicked and the result would be: Annie, Archie, Anton ...

How can I do it?

Thanks,
Avihai

TheRave
01-18-2008, 05:35 AM
SQL Queries:SELECT * FROM foobar WHERE name LIKE 'a%';
SELECT * FROM foobar WHERE name LIKE 'b%';
SELECT * FROM foobar WHERE name LIKE 'c%';
etc.

Avihai
01-18-2008, 07:43 AM
Thanks alot!!! :-)