How would one correctly use a JOIN to add each row that matches the ID from a second table in as a column header of the first table.
Example.
THEME TABLE
ID TITLE DATE TEXT
1 logo 23101 some sample text
2 back 23101 some sample text
THEME_META Table
refID field value
1 width 300
1 height 190
1 alt some alternate text
2 bgcolor #222
MySQL query would then be SELECT * FROM theme WHERE date = ?
I would then have foreached my results and have my theme item in a variable which I can use to echo the value for any column in the row.
eg. echo $theme['title'];
How would I also be able via a JOIN to be able to echo
$theme['width'] . $theme['height'] . $theme['alt']