CI CRUD Model - JOIN Example


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. <?
  2.  
  3. $sql = array
  4. (
  5. array('where', 'table.id', 1),
  6. array('join', 'second_table', 'second_table.id=table.id'),
  7. );
  8. $read = $this->crud_model->read('table', $sql);
  9.  
  10. ?>

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.