I have a table set up something like
Title Band Style
Title 1 Band 1 Country
Title 2 Band 2 Rap
Title 3 Band 3 Rock
. . .
. . .
. . .
I'd like to set up a page that dispays all the Country albums, then the Rap albums, then the Rock albums, etc.
Right now, I have the page set up to do a separate MYSQL query for each category of music.
For example
"SELECT * FROM table WHERE Style='Country'"
Then I have the code list the results from this query, and move on to the next query:
"SELECT * FROM table WHERE Style='Rap'"
and so on.
So, for example, if I had 100 different styles of music, I would have to perform 100 different queries.
Is there a more efficient way to do this? Just perform one query and have PHP do the organization of the data?
Thanks for your help!