im trying to create a page on my website to list beers that have been on at my local pub
i want to create a mysql database that is similar to this
ID l Brewery l Beer l
1 l Potbelly l Potbelly best l
2 l Oakham l JHB l
i want the page to pull the data from the mysql table and list it as follows
Brewery
- Beer 1
- Beer 2
- Beer 3
Brewery 2
- Beer 1
- beer 2
basically i want all the beers by the brewery under the brewery name
if possible id like everything alphabetically ordered or ordered by the brewerys with the most beer but i am havin huge problems coding this as im a slight novice when its comes to making lists and pulling data from the mysql database
any suggestions would be greatly appreaciated
one other question dependin on how its done will it matter if for exmaple one brewery has beers wiht ids 3 , 46 , 107 or will they have to be 2,3,4,5,6