summaryrefslogtreecommitdiffstats
path: root/user_guide/database
diff options
context:
space:
mode:
authorPhil Sturgeon <email@philsturgeon.co.uk>2011-08-21 21:07:23 +0200
committerPhil Sturgeon <email@philsturgeon.co.uk>2011-08-21 21:07:23 +0200
commit5137766f2b59daa2d5f99eda0833a950ab2eaf61 (patch)
tree863f83ccae42f56d5c14e0be667f07ec3397a3ef /user_guide/database
parentfa2c3b57ba60558c4793dec373dd2ddbd4fba1da (diff)
parent68d1f4c3e216d8490bd1b1d397c31bd51a05ecc4 (diff)
Merge pull request #240 from chonthu/develop
updated changelog and documentation for active record new 3rd argument op
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>