summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorNithin Meppurathu <admin@nitmedia.com>2011-08-21 18:05:17 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-10-27 14:03:17 +0200
commitda6aa15a41c2286ca161d036a02f6857ce060e27 (patch)
treef6c6bfa678ca3f38be9f8c599dd97b46fad9e06d /user_guide/database
parente06f2cb3700edd13426af4b66d3f2a4d0fefd080 (diff)
updated changelog and documentation for active record new 3rd argument option #none# to like clause
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 074f869b4..bd3c07d88 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>