Posted By

jtkendall on 01/10/09


Tagged

sql php5 example model MVC join ci crud codeigniter


Versions (?)

Who likes this?

4 people have marked this snippet as a favorite

localhorst
umang_nine
dantreacy
mmcachran


CI CRUD Model - JOIN Example


 / Published in: PHP
 

  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  

You need to login to post a comment.