Select Distinct PHP

I have the following code that is currently not printing anything. Getting this to print the unique items in the type column is a preliminary step. After I get this working, I want to store the values in a way that would allow me to recursively say select * where type=x. The goal of this is to handle each type separately from one another. Any help in developing this code further would be greatly appreciated. I'm stuck.

It looks like the query string is created but is never fed to the mysql_query() function. Here is an example code snippet that teaches how to do some of the basics in PHP and MySQL. Please read it over and post back with any specific questions.

And save yourself a lot of trouble going forward. Add error_reporting(E_ALL) to the top of all your scripts.

When table data gets too large to manage or queries take too long to execute the solution is often to buy bigger hardware or assign more CPUs and memory resources to the machine to solve the problem. However, the best, cheapest and most effective so…

The viewer will learn the basics of jQuery, including how to invoke it on a web page.
Reference your jQuery libraries: (CODE)
Include your new external js/jQuery file: (CODE)
Write your first lines of code to setup your site for jQuery.: (CODE)