Hi There,
This should be obvious but my mind is blank.
Can I find all courses with "MATH" in the title?
In SQL it would be SELECT FROM courses WHERE fullname LIKE %MATH% or SELECT FROM courses WHERE CONTAINS(fullname, '%MATH%')
Neither:
$course = $DB->get_record_sql('SELECT FROM {course} WHERE Contains(fullname , ? )' , array('%MATH%');
or
$course = $DB->get_record_sql('SELECT FROM {course} WHERE fullname LIKE ?)' , array('%MATH%');
work.
Any ideas gratefully received.
Best Regards
Dave