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

[eluser]someone Smile[/eluser]
Hello!

I'm working on a news's search form/engine and I have some problem with LIKE (I already read about MATCH and AGAINST, but that don't help me, because I have different table type). If I search for 'word' and if the title of article is 'This is text of word', the title will be find. But if I search for 'This is text of word' or 'This is text of' or 'This is text', there is no results.

This is query which I use:
Code:
$this->db->select('title, content, date, url')->like(array('title' => $keyword, 'content' => $keyword))->order_by('id_article', 'desc')->get('news');

Thanks! :-)


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