Notice: Undefined variable: objResult in C:\xampp\htdocs\www\.....php on line 44
Notice: Undefined variable: objResult2 in C:\xampp\htdocs\www\.....php on line 54
Code
$DB = mysql_select_db("web_db");
mysql_query('SET CHARACTER SET utf8');
mysql_query("SET character_set_client = utf8");
mysql_query("SET character_set_connection = utf8");
$SQL = "SELECT * FROM mynu_tree
WHERE level = '1' ORDER BY date DESC";
$Query = mysql_query($SQL) or die ("Error Query [".$SQL."]");
while($objResult = mysql_fetch_array($Query))
{
?>
<li class="expandable"><div class="hitarea expandable-hitarea"></div><span><strong><a href="<?=$objResult["url"];?>"><?=$objResult["name_menu"];?></a></strong></span>
<ul style="display: none;">
<?
$SQL2 = "SELECT * FROM mynu_tree
WHERE level = '2'
AND group_m LIKE '$objResult[group_m]%' ORDER BY menu_cod ASC";
$Query2= mysql_query($SQL2) or die ("Error Query [".$SQL2."]");
while($objResult2 = mysql_fetch_array($Query2))
{
?>
<li class="expandable"><div class="hitarea expandable-hitarea"></div><a href="<?=$objResult2["url"];?>"><?=$objResult2["name_menu"];?></a>
<? }?>
</li>
</ul>
<?
}
mysql_close ($Connect);
?>