id | element
----------
1 | Milk
2 | Bread
3 | Butter
Milk and Butter have "connection". And Bread and Butter have "connection". These are even connection, not parent-child.
How can i display them?
id1 | id2
----------
1 | 3
2 | 3
yes, but
id1 | id2
----------
3 | 1
3 | 2
also right, there are no first and second.
How can this be done?