Problem Description
I am trying to fetch the number of rows for a query using a Moodle function.
This is what I have done so far:
$records = $DB->get_records_sql("select * from {user} where maildigest=$login_id");
How do I get the number of results?
AI-Generated Solution
Powered by LMSouq AI · GPT-4.1-mini
Analyzing problem and generating solution…
Was this solution helpful?