skip to main
|
skip to sidebar
Web Development with PHP
Apr 12, 2011
Adding a dynamic navigation bar
To add a dynamic navigation bar you can use following simple code for reference.
$navitems = array('filename1.php' => 'Page Name 1', 'filename2.php' => 'Page Name 2');
echo "<ul>\n";
foreach ($navitems AS $k => $v) {
echo '<li><a href="' . $k . '" title="' . $v . '">' . $v . "</a></li>\n";
}
echo "</ul>\n";
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
Blog Archive
▼
2011
(7)
►
July
(1)
►
May
(2)
▼
April
(3)
How to split data in php
Adding a dynamic navigation bar
Adding an editable grid
►
January
(1)
►
2010
(6)
►
August
(1)
►
May
(1)
►
April
(1)
►
March
(1)
►
February
(1)
►
January
(1)
No comments:
Post a Comment