I am trying to display all assignment result to teacher in moodle and using below query.
When i am using following query:
if (!$this->is_downloading()) {
$this->rawdata = $DB->get_records_sql($sql, $this->sql->params, $this->get_page_start(), $this->get_page_size());
} else {
$this->rawdata = $DB->get_records_sql($sql, $this->sql->params);
}
I get only single record but when i use same query directly in my SQL then i get all of all records.
So please let me know how to get all records when i use this query in moodle.
Also how to display all assignment result to teacher in moodle