HosipLan

Untitled

Oct 14th, 2012
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.25 KB | None | 0 0
  1. $ideas = $this->db->select('*, user.id as user_id')->from('napad')
  2.     ->innerJoin('user')->on('napad.id_user = user.id');
  3.  
  4.  
  5.  //latte
  6.  
  7. {foreach $ideas as $idea}
  8. <tr>
  9.   <td>ID uživatele {$idea->user_id}</td>
  10.   <td>Nápad {$idea->nazev}</td>
  11. </tr>
Advertisement
Add Comment
Please, Sign In to add comment