×

Welcome to TagMyCode

Please login or create account to add a snippet.
0
0
 
0
Language: PHP
Posted by: Gábor Papp
Added: Oct 3, 2016 4:25 AM
Modified: Aug 8, 2017 5:11 AM
Views: 5
Tags: no tags
regi adminban valo lekerdezes
  1. $mmezok='id,aktiv,ssz,nev,url,funkc1';
  2. $menu=$s_db->GetArray("SELECT ".$mmezok." FROM ".P."lista_elem WHERE lista_id=11 AND aktiv=1 AND tartozik=0");
  3. for ($i=0; $i<count($menu); $i++) {
  4.     $almenu=$s_db->GetArray("SELECT ".$mmezok." FROM ".P."lista_elem WHERE lista_id=11 AND aktiv=1 AND tartozik=".$menu[$i]['id']);
  5.     if ($almenu) {
  6.         $menu[$i]['almenu']=$almenu;
  7.     }
  8. }
  9. $smarty->assign("fomenu",$menu);
  10. // print('-- <pre>');print_r($menu);print('</pre>');