Hi!
I'm trying to develop a simple module. In the form to add/edit data I need a list box field with the name of all resources (or/and activities) for each course).
I tried this code in mod.html file:
$resources = get_records_list("resource", "name", $mymodule->resource);
$allresources = explode(",", $mymodule->resource);
choose_from_menu($allresources, "resource", $form->resource);
But the result did't show any record of the table resource!
Anyone help me how to do this ? Thanks