hello everyone..im a new in php..now,im searching for php script to sort data by alphabet..can anyone out there help me...i really appreciate yours..

Recommended Answers

All 4 Replies

Pick the row you want to alphabetize and use the ORDER BY clause.

SELECT * FROM table ORDER BY name DESC;

ASC can also be used to sort ascending.

Member Avatar for iamthwee

What makes you think he is using a database?

thanx 4 the script..i'll try first...

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.