Home
Forums
Members
Search
Help
New topics
Todays topics
Website
Welcome Guest, Not a member yet?
Register
Sign In
Login
Username:
Password:
Remember me
Lost Password?
CodeIgniter Forums
Archived Discussions
Archived Development & Programming
Meaning in CI
Share on Google
Share on Facebook
Share on Twitter
View a Printable Version
Subscribe to this thread
Add Poll to this thread
Send thread to a friend
Linear Mode
Threaded Mode
Meaning in CI
El Forum
Guest
#1
03-01-2010, 03:18 PM
[eluser]Shaileen[/eluser]
Can you please tell me the meaning of this line in CI...
The line is written in perl/cgi..
WHERE lower($searchField) LIKE lower('%$searchText%') $groupSearch
El Forum
Guest
#2
03-02-2010, 03:58 AM
[eluser]Jan_1[/eluser]
see
userguide
Code:
$this->db->like('title', 'match');
// Produces: WHERE title LIKE '%match%'
Does that help you?
El Forum
Guest
#3
03-02-2010, 09:22 AM
[eluser]Shaileen[/eluser]
Nop..
I didnt get the meaning of lower($searchField)
and $groupsearch..
LIKE lower(%Searchtext%) - i got the meaning of this..
El Forum
Guest
#4
03-02-2010, 09:39 AM
[eluser]Shaileen[/eluser]
I replaced that with :
$array = array('searchField' => $searchText, 'groupSearch' => $searchtext);
$this->db->like($array);
is this correct any idea???
El Forum
Guest
#5
03-02-2010, 10:09 AM
[eluser]danmontgomery[/eluser]
lower() is just converting the string to lowercase, php's equivalent is strtolower(). It's unnecessary in this case, because like searches are case-insensitive.
--------------------
Private Messages
User Control Panel
Who's Online
Search
Forum Home
General
-- News & Discussion
-- Events
-- Lounge
-- Regional User Groups
Using CodeIgniter
-- Installation & Setup
-- Model-View-Controller
-- Libraries & Helpers
-- Best Practices
-- Choosing CodeIgniter
-- General Help
CodeIgniter 4
-- CodeIgniter 4 Roadmap
-- CodeIgniter 4 Development
-- CodeIgniter 4 Feature Requests
-- CodeIgniter 4 Support
-- CodeIgniter 4 Discussion
-- CodeIgniter 4 Addins
Development
-- CodeIgniter 3.x
-- CodeIgniter 2.x
-- Issues
-- NetBeans Plugin
External Resources
-- Spotlight
-- Learn More
-- Jobs
-- Addins
Archived Discussions
-- Archived Libraries & Helpers
-- Archived Development & Programming
Theme © iAndrew 2016 -
Forum software by © MyBB