Table Columns from Database

Been trying to figure this for weeks, and gotten to the point I just need help!

I'm wanting a custom table, which gets the rows from a database table as normal, and the columns from another database table (rather than the standard database column names) to create a matrix of sorts.

Excusing the below mess showing where I'm up to (just trying to get it working at this stage), the action doesn't seem to be running when I click on a cell.
Was this page helpful?