I have two tables
table 1
idn ......1..........2
name....john......mary
table2
id......1...........2.........3...........4
colors..white......red.......blue.......green
idn......1..........2.........1...........1
I have my query SELECT * FROM table1,table2 WHERE table1.idn=table2.idn
and I want to get results like this:
name...........colors
--------|-------------
john....|...white
........|...blue
........|...green
mary....|...red
So if anyone can help me with php code to achive this result?