hey there guys,
the following code dies on line 27 ($dofunction(); line), it says that there is the wrong parameter count for the function .
its part of navigation script i suppose. the action is retrieved using $_GET then, a file in included and the appropriate function called ... but its not working...
if($_GET["action"] == null) {
$action = 'current';
} else {
$action = $_GET["action"];
}
$actionarray = array('past' => array('live.php','archive'),
'current' => array("live.php",'current'),
'comments' => array('comments.php','comments'),
'addcomments' => array('comments.php','addcomment'),
'addcomments2' => array('comments.php','addcomment2'),
'editcomments' => array('comments.php','editcomment'),
'editcomments2' => array('comments.php','editcomment2'),
'view' => array('live.php','view_show'),
'add_new' => array('admin.php','add_new'),
'add_new2' => array('admin.php','add_new2'),
'edit' => array('admin.php','edit'),
'edit2' => array('admin.php','edit2'),
'search' => array('live.php','search')
);
$includefile = $actionarray[$action][0];
include("$includefile");
$dofunction = $actionarray[$action][1];
$dofunction();
can anyone help?!
stew