0 AND parent = 0 AND lang = 'hu' ORDER BY sorrend, menu ASC "; //echo $msql; $menuObj = mysql_db_query ($adatb, $msql) or die ("no DB results in reading, in main menuk >> ".mysql_error()); $elsoMainMenu =1; while ($menupont = mysql_fetch_object ($menuObj)) { if($elsoMainMenu){ $elsoMainMenu = 0; }else{ $mainMenu .="       "; } $mainMenu .= <<$menupont->menu END; } mysql_free_result ($menuObj); if(getParentMenuId($tema_id)==0){ $pid = $tema_id; }else{ $pid = getParentMenuId($tema_id); } if ($pid): /***************************** menugenerálás ****************************/ $msql = "SELECT * FROM $menuk WHERE display <> 0 AND parent= '$pid' ORDER BY sorrend, menu ASC"; //echo $msql; $menuObj = mysql_db_query ($adatb, $msql) or die ("no DB results in reading, in main menuk >> ".mysql_error()); $elsoFullmenu =1; while ($menupont = mysql_fetch_object ($menuObj)){ if($elsoFullmenu){ $elsoFullmenu = 0; }else{ $fullMenu .="    "; } $fullMenu .= <<