Jump to content

help with category/subcategory select


scarhand

Recommended Posts

i have 3 tables:

 

main_categories (id, name)

sub_categories (id, name, main_category_id)

listings (id, name, sub_category_id)

 

i want to select all of the listings that are under the "main_category" specified

 

can i get some help? im really terrible at JOINS (if that even what i should use)

Link to comment
https://forums.phpfreaks.com/topic/134357-help-with-categorysubcategory-select/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.