Thanks for all your help Dubz, got this working a treat now.
I have a couple of other things I wondered if you could give me some pointers on.
Firstly, i want to create two buttons above the table, which when press/clicked on, will limit the range of results in the table. For example, say you had a set of window sizes, ranging from 500mm to 4000mm, at the top you had free buttons (50 - 1000mm) (1001 to 2000mm) and (2001 to 4000mm), and as such if you clicked on one it would alter the mysql_query statement to only show that range? Can that be done??
Also, Im thinking of adding a text box with a max and min value that the user can enter a range in, thus showing the results in that range
I guess both of the above would use very similar code, just different user entry points