Welcome Guest, Not a member yet? Register   Sign In
Find words form same column in Database (Search)
#3

(This post was last modified: 10-20-2015, 10:59 PM by ardavan.)

(10-20-2015, 09:53 PM)pdthinh Wrote: You could use like() and or_like()




PHP Code:
$this->db->like('TITLE'$words[0]);

for (
$i 1$i count($words); $i++)
{
    $this->db->or_like('TITLE'$words[$i]);


thanks for your help. i just needed to add
PHP Code:
$this->db->where('STATUS','Live'); 
before
PHP Code:
$this->db->or_like('TITLE'$words[$i]); 
Reply


Messages In This Thread
RE: Find words form same column in Database (Search) - by ardavan - 10-20-2015, 10:38 PM



Theme © iAndrew 2016 - Forum software by © MyBB