The Information is stored in 1 table.
I will post the code that I am working with.
$result = mysql_db_query($DB, "SELECT * FROM domain_listings WHERE user_no='$user' and closing_time < $now")or die(mysql_error());
Basically what I am trying to do here is pull all listings that have expired out of the database and organize them by subcategory. This table has the following fields.
lot_no - unique to each item
domain_name
closing_time
price
description
url
subcategory
So basically what I need to do is have it spit out the results under each subcategory.
IE. Business Listings
result
result
result
Family Listings
result
result
result
I need to print the subcategory and then the results underneath for each match, without printing subcategories with no matches.
Hope i am making sense here.
I tried to use an array to do this.. but it did not work correctly.
Thanks for your help.
Cheers
John