Welcome Guest, Not a member yet? Register   Sign In
[SOLVED] Joining Information from two database using Active Record
#4

[eluser]anyamanggar[/eluser]
i have sam problem here

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


[quote]
Error Number: 1052

Column 'title' in field list is ambiguous

SELECT `title` FROM (`info`) JOIN `berita` ON `info`.`id` = `berita`.`id` WHERE `info`.`title` LIKE '


Messages In This Thread
[SOLVED] Joining Information from two database using Active Record - by El Forum - 07-22-2012, 11:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB