Guest User

Untitled

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