Board Logo

Using in CodeCharge
asawyer13 - 12/27/2008 at 03:06 AM

Anybody here used Tigra Menu in CodeCharge?

I specifically am trying to use the dynamic menu creation with php/mysql.

I got the demo to work just fine, but I seem to be having an issue with the syntax I think.

I am trying to enter this in the header.html file, as I can't quite figure out where to put it in the header.php file that CodeCharge generates.

The code I'm trying to enter is:
<script language="JavaScript" src="menu_files/menu.js"></script>
<script language="JavaScript" src="menu_files/template.js"></script>
<link rel="stylesheet" href="menu_files/menu.css">

<script language="JavaScript">
<?php build_hierarchy_var('localhost', 'myuser', 'mypassword', 'mydatabase', 'menuitems', 'MENU_ITEMS0', 'id', 'parent_id', 'node_name', 'node_url');?>
</script>

I believe the build_hierarchy_var line is what's generating the error. I had to add the php portion to get it to be valid syntax, but I think there is something else wrong.

I am not a php pro, nor really an html pro yet, so it's possible it's something very simple.

Any help would be appreciated. I am using Tigra Menu Gold.

Alan


Softcomplex: http://www.softcomplex.com/
Back to forum: http://www.softcomplex.com/forum/