Welcome Guest, Not a member yet? Register   Sign In
search in two tables
#8

[eluser]anyamanggar[/eluser]
i have been update my code to like this

Code:
function cariinfo($keyword) {
$this->db->select('*');
$this->db->from('info');
$this->db->join('berita', 'info.id = berita.id');
$this->db->like('info.title',$keyword);
return $this->db->get()->result();
}

stil didnt show the data what i search..


Messages In This Thread
search in two tables - by El Forum - 07-21-2012, 05:37 PM
search in two tables - by El Forum - 07-21-2012, 08:29 PM
search in two tables - by El Forum - 07-22-2012, 07:11 PM
search in two tables - by El Forum - 07-22-2012, 07:32 PM
search in two tables - by El Forum - 07-22-2012, 07:56 PM
search in two tables - by El Forum - 07-22-2012, 08:00 PM
search in two tables - by El Forum - 07-22-2012, 08:20 PM
search in two tables - by El Forum - 07-22-2012, 08:29 PM
search in two tables - by El Forum - 07-22-2012, 09:22 PM
search in two tables - by El Forum - 07-22-2012, 09:29 PM
search in two tables - by El Forum - 07-22-2012, 10:42 PM
search in two tables - by El Forum - 07-22-2012, 11:38 PM
search in two tables - by El Forum - 07-22-2012, 11:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB