From 3a87f8fa632d7e0c3601b489e0926358b0ebe1c1 Mon Sep 17 00:00:00 2001 From: Yousuf Tafhim Date: Sun, 7 Jan 2024 22:02:51 +0500 Subject: [PATCH] placeholder variable fixed in query example --- docs/apis/core/dml/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/apis/core/dml/index.md b/docs/apis/core/dml/index.md index f00e42a220..a422d9fc77 100644 --- a/docs/apis/core/dml/index.md +++ b/docs/apis/core/dml/index.md @@ -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}", [