Re: What's most efficient way to get the username from an id? by Davo Smith - Wednesday, 15 August 2012, 9:23 PM Number of replies: 0 If you are using Moodle 2.x (instead of Moodle 1.9): $DB->get_field(...) http://docs.moodle.org/dev/Data_manipulation_API Average of ratings: Useful (1) Permalink Show parent Reply