Hi
you can try to use Moodle functions as well
$qz= get_coursemodules_in_course('quiz', $course->id );
$qz->id; // this is the id
$qz->instance; // this is the id in {quiz} table
Regards!!
Hi
you can try to use Moodle functions as well
$qz= get_coursemodules_in_course('quiz', $course->id );
$qz->id; // this is the id
$qz->instance; // this is the id in {quiz} table
Regards!!