by Jitendra Gaur.
Can you tell me what is the code you are using i think you should use $DB->get_records_sql() to get all the records dont use $DB->get_record_sql()
Can you tell me what is the code you are using i think you should use $DB->get_records_sql() to get all the records dont use $DB->get_record_sql()