I'm trying to make an multilevel menu. But the way i wan't it to work seems to be a bit complicated for me. I wan't the menu to work like this one(left menu): http://www.proconsult.dk/. The page must reload every time a menu has been clicked, because i wan't a new page to open (newest offers related to the clicked category).
So far i managed to get a non collapsable menu script:
// get all menuitems with 1 query
$result = mysql_query("SELECT cat_id, cat_parent, cat_name FROM categories ORDER BY cat_id, cat_name ");
// prepare special array with parent-child relations
$menuData = array(
'items' => array(),
'parents' => array()