Skip to content

Commit

Permalink
Merge pull request #857 from yousuftafhim/patch-1
Browse files Browse the repository at this point in the history
Placeholder variable fixed in query example
  • Loading branch information
andrewnicols authored Jan 8, 2024
2 parents 0e203aa + 3a87f8f commit ff5a3bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/apis/core/dml/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -863,7 +863,7 @@ public function sql_compare_text(

```php title="Example"
$comparedescription = $DB->sql_compare_text('description');
$comparedescription = $DB->sql_compare_text(':description');
$comparedescriptionplaceholder = $DB->sql_compare_text(':description');
$todogroups = $DB->get_records_sql(
"SELECT id FROM {group} WHERE {$comparedescription} = {$comparedescriptionplaceholder}",
[
Expand Down

0 comments on commit ff5a3bd

Please sign in to comment.