I'm trying to query my products table;
+-------------------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------------------+--------------+------+-----+---------+----------------+
| id | int(11) | NO | PRI | NULL | auto_increment |
| name | varchar(50) | NO | | NULL | |
| make | varchar(50) | NO | | NULL | |
| email | varchar(200) | NO | | NULL | |
| category | longtext | NO | | NULL | |
+-------------------+--------------+------+-----+---------+----------------+
i want to query the database and echo the results in a table like so, i want it to echo the category name then echo all the which will contain the name, make and some other details etc..
I want to show it like so;
Category:
name name name name
-------------------------------------
Category:
name name name name
-------------------------------------
Category:
name name name name
-------------------------------------
Category:
name name name name
-------------------------------------
where each name is a different product in the product table. Not sure where too look and what to search for.