Hi , im trying to use get_record function but, when i tryed the following way doesnt work
$course = $DB->get_records('course',array('idnumber' => $idnumber));
but if I pass the data
$course = $DB->get_records('course',array('idnumber' =>6417 )); works fine.
Which is the problem?