I have tried many ways to join two tables but showing error. showing fatal error.i am beginner in CodeIgniter.
On Model my function is this
$quer=$this->db->select('*')->from('assign_tble')
->join('course_details','assign_tble.ccode=course_details.ccode','LEFT')
->where('assign_tble.scode',$userID);
return $quer->result();
while running it is showing fatal error
Fatal error: Call to undefined method CI_DB_mysqli_driver::result() in C:\wamp\www\keitauniv\application\models\AllCourses_m.php on line 41 Message: Call to undefined method CI_DB_mysqli_driver::result()
this is the error showing while running.