how to use insert_record function in moodle

Re: how to use insert_record function in moodle

by Howard Miller -
Number of replies: 0
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

$DB->insert_record('tl_course', $stuff);

You supply the table name, Moodle adds the database prefix (i.e. mdl_ normally, m_ in your case)

Average of ratings: Useful (2)