Having succesfully used get_records_select() to retrieve data from the database I'm having a bit of trouble displaying it. I'm hoping to display values from each record in a table format such that you have
Personla Learning Record | |||
Id | Date | Title | Type |
1 (pk of table) | Value from Record | Value from Record | Value From Record |
2 | Value from Record | Value from Record | Value from Record |
2 | Value from Record | Value from Record | Value from Record |
My question is, is there a function in moodle to do this or somethign similar? I imagine there isnt. But I did see the online users block used print_side_block which does print out a list from the get_records_select() array so i thought id ask!
If there isnt a function perhaps someone can anyone point me in the direction of a good php tutorial for printing out values from an array of objects to a table so I can write my own function that would be great!
Thanks
Tim