HosipLan

Untitled

Sep 26th, 2011
190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.24 KB | None | 0 0
  1. $pairs = $db->select('ch.* p.nazev as parent_nazev')
  2.     ->from('test_kategorie ch')
  3.     ->innerJoin('test_kategorie p')
  4.         ->on('p ON p.id = ch.parent')
  5.     ->fetchAssoc('parent_nazev[]id=nazev');
  6.  
  7. $form->addSelect('kategorie', 'Kategorie', $pairs);
  8.  
Advertisement
Add Comment
Please, Sign In to add comment