Today i was writing a PHP script and i couldn't figure out how to get the data from mysql and display it on with my code.

Can you guys help me.

basically i want to create links like this of all the my pages, and i want to display links with letters so people can click on them and will only display the pages starting with the letter. the links would show look like this alphabet:

A B C D E F G H I J K L M N O P Q R S T U V W X Y Z

then after a user click on the letter A (for example) i want to get all the pages starting with the letter A only, so i want to write the code for mysql so the it only gets the pages with starting with the letter A at the begining therefore only displaying the pages that begin with the letter A.

can you show me how to do get mysql data, and then display it on the screen with the mysql SELECT for my pages starting with a particular letter from the alpahbet only?

thanks