Im pretty new in development with Moodle and i reach a problem that i cant solve. Im making this query to get data from the database:
$tempcurso = $DB-> get_records_sql("SELECT MIN(e.id) as id FROM `mdl_course` as m, `mdl_enrol` as e WHERE m.id = e.courseid and m.fullname=" . $c );
But i dont know how to handle thee data i am going to get.
Thank you all in advance,