Benedizione
04-15-2007, 10:41 PM
A month or so ago this php stuff was briefly explained to me but I am just now getting around to experimenting with it on my site. I understand that with php I can create a menu from a "menu.txt" page, add a php code >><?php menu(TRUE); ?><<to all of my pages (change all my pages from "htm" to "php") and that menu from "menu.txt" will show up on all of my pages. Correct?
I am not sure what was meant by this....does the following code go on every page of the website too?
Quote:
make sure you have the php file with the function included in your pages with the menu:
<?php include "path/to/file.php"; ?>
Unquote
How do I create the kind of menu that I want? How do I change physical appearances and such?
I think I am supposed to use a code like this on my "menu.txt" page:
echo "<div class=\"item\"><a href=\"". $one['0'] ."\">". $one['1'] ."</a></div>\r\n<div class=\"spacer\"></div>";
But where does the url go? I am confused by the back slashes in the code instead of forward slashes.
Andrea
I am not sure what was meant by this....does the following code go on every page of the website too?
Quote:
make sure you have the php file with the function included in your pages with the menu:
<?php include "path/to/file.php"; ?>
Unquote
How do I create the kind of menu that I want? How do I change physical appearances and such?
I think I am supposed to use a code like this on my "menu.txt" page:
echo "<div class=\"item\"><a href=\"". $one['0'] ."\">". $one['1'] ."</a></div>\r\n<div class=\"spacer\"></div>";
But where does the url go? I am confused by the back slashes in the code instead of forward slashes.
Andrea