So last night i successfully installed IPB and SMF as well as Mediawiki and one cloud so i know how i want everyting to look, and this morning i did a small navigation code which showed up;
- Code: Select all
<div id="nav_bar">
<!-- span sets up the nav bar -->
<span></span>
<div class="side_bar_logo">
<!-- this handles the logo -->
<a href=""><img src="images/pictures/logo.png" /></a>
</div>
<!-- this sets up the nav buttons -->
<div class="button_holder">
<!-- nav button -->
<button onclick="location.href='#'" class="nav_button">Videos</button>
<button onclick="location.href='#'" class="nav_button">Cheats</button>
<button onclick="location.href='#'" class="nav_button">Forum</button>
<button onclick="location.href='#'" class="nav_button">Chat</button>
<button onclick="location.href='#'" class="nav_button">News</button>
<button onclick="location.href='#'" class="nav_button">Shop</button>
<button onclick="location.href='#'" class="nav_button">Login</button>
</div>
</div>
and it shows as; http://imgur.com/nAzeGso
and mysql and everyting is running right, it connected and everything,the file is saved as nav.php and isnt in the htdocs for xampp, but my issue lays with what im doing right now, so i have set up a template to run it, just to make sure my php was working i decided to run it to see if
- Code: Select all
<?php echo $sitename ?>
- Code: Select all
<?php include ('includes/variables.php') ?>
<html>
<head>
<title><?php echo $sitename ?></title>
</head>
<body>
</body>
</html>
like shown here: http://imgur.com/iympuAv
Any idea if i did something wrong, they are both indeed saved with a php extention (i included the url bar to show that) any help would be appreaciated