johnsimpson
Programmer
Hi I am struggling a little with the best way to do this and its quite hard to explain, Im sure there is a simple answer tho...
I am doing a portfolio website and making it all cms driven, the problem I am stuck on is that I have multiple categories which jobs could fall under. i.e. a project could include web design, graphic design, branding etc...
I want to add the categories into their own table and then link this table with the main table via a parent id or something like... but my problem is that I may want to choose several of the categories, so how could I add multiple options into my main table?
So for example I will have 2 tables
1. tbl_categories:
id | category
------------------
1 | Web
2 | Print
2. tbl_portfolio
id | Project | Image | Description | Category
----------------------------------------------------
1 | Test Project | img.gif | description | 1
So... I want to add more than one value into the category field of tbl_portfolio as the project may include web and print
How could I do this in a way which I could then pull the values back out to filter some results from (i.e. just show projects which include web)
I hope this makes sense, please let me know if you need more information
thanks in advance
J
I am doing a portfolio website and making it all cms driven, the problem I am stuck on is that I have multiple categories which jobs could fall under. i.e. a project could include web design, graphic design, branding etc...
I want to add the categories into their own table and then link this table with the main table via a parent id or something like... but my problem is that I may want to choose several of the categories, so how could I add multiple options into my main table?
So for example I will have 2 tables
1. tbl_categories:
id | category
------------------
1 | Web
2 | Print
2. tbl_portfolio
id | Project | Image | Description | Category
----------------------------------------------------
1 | Test Project | img.gif | description | 1
So... I want to add more than one value into the category field of tbl_portfolio as the project may include web and print
How could I do this in a way which I could then pull the values back out to filter some results from (i.e. just show projects which include web)
I hope this makes sense, please let me know if you need more information
thanks in advance
J