I'm not getting it done, I need to put a class on the output of the function.
Can you help, when the menu item is active there has to be put a class to the link.
This is the code:
function loadMenu()
{
$result = mysql_query(" SELECT * FROM cms_page WHERE site_id =2 AND page_inmenu =1 AND page_active =1");
if ($DEBUG)
echo "<pre>$result</pre>";
while($row = mysql_fetch_array($result))
{ $last_parent = $row['page_name'];
echo "<a href={$row['link_name']}>{$row['page_name']}</a>";
}
}