summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorGreg Aker <greg@gregaker.net>2011-08-21 22:47:30 +0200
committerGreg Aker <greg@gregaker.net>2011-08-21 22:47:30 +0200
commitb47af4423cea88ff3fef199e1871d7b9c0f3b0d3 (patch)
treed0e78dcf232fa4c11f56e720cf7021d8285a37d1 /user_guide/database
parentf45ea72f1105f3e30002d60c2cf8db8c11b9a9f1 (diff)
parent284dd9756b8c03059d13e460190d2385ba599a91 (diff)
Merge branch 'develop' into feature/unit-tests
Diffstat (limited to 'user_guide/database')
-rw-r--r--user_guide/database/active_record.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/user_guide/database/active_record.html b/user_guide/database/active_record.html
index 6609d287e..92d9614d5 100644
--- a/user_guide/database/active_record.html
+++ b/user_guide/database/active_record.html
@@ -334,6 +334,13 @@ $this->db->or_where('id >', $id);
$this-&gt;db-&gt;like('title', 'match', 'both'); <br />
// Produces: WHERE title LIKE '%match%' </code> </li>
+If you do not want to use the wildcard (%) you can pass to the optional third argument the option 'none'.
+
+<code>
+ $this-&gt;db-&gt;like('title', 'match', 'none'); <br />
+// Produces: WHERE title LIKE 'match'
+</code>
+
<li><strong>Associative array method:</strong>
<code>