hi there,
got a list of links as follows (links.inc.php):
now i want them to be displayed on the page:PHP Code:<?php
$links[]="<a href=\"index.php\" title=\"football.lu\">home</a>";
$links[]="<a href=\"competitions.php\" title=\"national & international competitions\">competitions</a>";
$links[]="<a href=\"organisation.php\" title=\"»history »general info »downloads\">organisation</a>";
$links[]="<a href=\"news.php\" title=\"what's new?\">news</a>";
$links[]="<a href=\"clubs.php\" title=\"clubs a-z\">clubs</a>";
$links[]="<a href=\"shop.php\" title=\"»tickets »gear\">shop</a>";
$links[]="<a href=\"links.php\" title=\"links\">links</a>";
$links[]="<a href=\"contact.php\" title=\"how to contact us\">contact us</a>";
$links[]="<a href=\"sitemap.php\" title=\"where do i find what?\">site map</a>";
?>
so far so good... but i'd like the link to the page that we're currently on to use a different css (ueberlink)PHP Code:<?php require("flf_navigation/links.inc.php");?>
<ul><?php
foreach ($links as $link) {
echo"<li>$link</li>";
}
?></ul>
i have managed to do something like this before:
can i use something similar? is there an obvious function of which i don't know?PHP Code:<?php
$path = pathinfo($_SERVER['PHP_SELF']);
$title = substr($path["basename"],".php",-4);
if ($title=="index"){
echo "Welcome";}
else {echo ucfirst($title);}
?>
please help![]()
lister





Bookmarks