Welcome Guest, Not a member yet? Register   Sign In
Search form/engine
#2

[eluser]Denzel[/eluser]
The query is using AND to combine the search for both LIKE statements. Essentially you are looking for a 'title' that contains "This is text of" AND 'content' that contains "This is text of". Is this what you intended?

Maybe you were looking for or_like (scroll down). Using something similar to:
Code:
->or_like(array('title' => $keyword, 'content' => $keyword))
will look for articles having a 'title' that contains "This is text of" OR 'content' that contains "This is text of".

Feel free to clarify your problem with more of an explanation if that wasn't what you were looking for.


Messages In This Thread
Search form/engine - by El Forum - 04-06-2012, 08:29 AM
Search form/engine - by El Forum - 04-06-2012, 01:27 PM
Search form/engine - by El Forum - 04-07-2012, 04:11 AM
Search form/engine - by El Forum - 04-07-2012, 04:44 AM
Search form/engine - by El Forum - 04-07-2012, 07:14 AM
Search form/engine - by El Forum - 04-07-2012, 08:26 AM



Theme © iAndrew 2016 - Forum software by © MyBB