0

i have been using this model for getting datafrom only one table

function model_employee_all()
 {
  $this->load->database();
  $query = $this->db->get('mytable1');
  return $query->result();
 }

How should i configure it to get data from multiple tables such as mytable1 and mytable2, Is there any way to use joins...

Thanks.

1

1 Answer 1

1
$this->db->join

Please refer the following url http://ellislab.com/codeigniter/user-guide/database/active_record.html

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.