diff options
author | Greg Aker <greg@gregaker.net> | 2011-08-21 21:44:20 +0200 |
---|---|---|
committer | Greg Aker <greg@gregaker.net> | 2011-08-21 21:44:20 +0200 |
commit | bf53a06961bd1ccc0f46a1e3d19c05da48fb2cad (patch) | |
tree | 2b8717e3bfa3bd1961e95375b66d605d3d2fb2cc /user_guide/database | |
parent | 151b7a9abed49e76232ad195cc2c010bfc82f22a (diff) | |
parent | 5137766f2b59daa2d5f99eda0833a950ab2eaf61 (diff) |
Merge branch 'develop' of github.com:EllisLab/CodeIgniter into develop
Diffstat (limited to 'user_guide/database')
-rw-r--r-- | user_guide/database/active_record.html | 7 |
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->db->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->db->like('title', 'match', 'none'); <br /> +// Produces: WHERE title LIKE 'match' +</code> + <li><strong>Associative array method:</strong> <code> |