Hi.
I have a table in a mysql db with the following structure:
table_links:
id | name | url | category
I want that my php page to take the data from the table and to print the links in the page ordered by category.
Suppose that i have a table with:
1 link1 www.link1.com xxx
2 link2 www.link2.com yyy
3 link3 www.link3.com xxx
The php script should print something like this:
Category xxx:
www.link1.com
www.link3.com
Category yyy:
link2 www.link2.com
I want my script to be dynamic so doesn´t matter the number of categories or links in the db it will group them by category (sorting by category alfabethical for example).
Any ideas how can i do this?