The tutorial at -> http://www.scriptcase.net/scriptcase-videos/#dynamic-menu Doesn’t even work! Here is my code
sc_appmenu_reset(menu);
sc_appmenu_create(menu);
sc_lookup(dsmenu, " SELECT
id,
parent,
description,
link
FROM
menu_link
ORDER BY
parent,
node_order");
foreach ({dsmenu} as $arr_menu) {
$id_item = 'item_'.$arr_menu[0];
if ($arr_menu[1] == 0) {
$id_parent = '';
}else{
$id_parent = 'item_'.$arr_menu[1];
}
sc_appmenu_add_item{
'menu',
$id_item,
$id_parent,
$arr_menu[2],
$arr_menu[3],
"","","",""
};
This is verbatim from the tutorial minus the table name. I have a table set up just like the one in the example. When I run the menu it’s blank. I can take out the foreach and it runs but with no menu items. As soon as I put in the code Scriptcase supplies it doesn’t work. It would help if this was explained a little further or an actual example with working code. It’s pretty worthless to create a video on an example that doesn’t exist and the code doesn’t even work.