I am working on a music player and I'd like to list all of the songs sorted by artist going from A-Z (ASC). The information is stored in a table with artist, file, song, etc.
I tried using while loops to order first the artist by A-Z, then the songs by the artist A-Z, but that didn't work. I never completely understood any kind of loops, so help would be appreciated!
One of the queries I used was SELECT * FROM musicinfo WHERE user='$user' ORDER BY artist ASC
.