Forum Moderators: coopster
id ¦ name ¦ related
1 ¦ name1 ¦ 2,4,9
2 ¦ name2 ¦ 12,1,4
3 ¦ name3 ¦ 9,29,7
4 ¦ name4 ¦ 34,2,2
etc, etc, etc. There are more fields but unimportant for what I am trying to accomplish.
Is this a good way of storing them? If not what is? And how would I be able to use that info usefully? Can you write a PHP script to separate them? I'm thinking of using a script with while() to go through and list all the items that are related with their name and description. Thanks for your help.
id ¦ name
1 ¦ name1
2 ¦ name2
3 ¦ name3
4 ¦ name4
id ¦ related
1 ¦ 2
1 ¦ 4
1 ¦ 9
2 ¦ 12
2 ¦ 1
2 ¦ 4
3 ¦ 9
3 ¦ 29
3 ¦ 7
4 ¦ 34
4 ¦ 2