That would mean the query failed. It looks correct at first glance, so are you sure you are connected correctly? I suggest you add some error checking to find out.
pritaeas
Posting Prodigy
9,263 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,455
Skill Endorsements: 86
Are you sure there is an id column in the item table?
Do this:
$item_query = mysql_query("SELECT * FROM item WHERE sub_category='Male_T-Shirts' ORDER BY id DESC LIMIT 8") or die(mysql_error());
pritaeas
Posting Prodigy
9,263 posts since Jul 2006
Reputation Points: 1,173
Solved Threads: 1,455
Skill Endorsements: 86
From where I'm looking, this table looks a bit awkward. I'd make the sub_category field an integer related to a subcategories table.
diafol
Keep Smiling
10,610 posts since Oct 2006
Reputation Points: 1,628
Solved Threads: 1,506
Skill Endorsements: 57
Question Answered as of 5 Months Ago by
pritaeas
and
diafol