MYSQL HowTo Get Display Select Show Data Starting With Letter Alphabet Only
- Forums
- MySQL
- MYSQL HowTo Get Display Select Show Data Starting With Letter Alphabet Only
This Page Contains information about MYSQL HowTo Get Display Select Show Data Starting With Letter Alphabet Only By braker in category MySQL with 3 Replies. [866], Last Updated: Sat May 18, 2024
braker
Wed Jan 10, 2007
3 Comments
10420 Visits
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
then u have to pass the alphabets as a url(get) and u must save the page names in the database so use the following query then it will show all the names of the pages from the database
select * from `products` where `page_name` like'$_get['pagename']%'