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

[eluser]anyamanggar[/eluser]
if i used return 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();
}

erorr like this

Code:
A PHP Error was encountered

Severity: Notice

Message: Trying to get property of non-object

Filename: backend/cariinfo_view.php

Line Number: 38


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