Miss_Thang
02-02-2007, 05:28 AM
I'm trying to change up my site and I'm practicing with a sub-site of mine. I want to use dynamic includes and have been following this tutorial here (http://yoursite.nu/tutorials.php?tut=phpnav). I did what it said, but when I preview my page here's what I get:
Parse error: syntax error, unexpected T_STRING in /home/mario6/public_html/layout/index.php on line 9
See yourself by clicking here (http://mariovazquez.nu/layout/).
Here's my index.php code:
<?php
$page = $_GET['x'];
if($page == "" || $page == "home") {
include('header.php');
include('home.php');
include('footer.php);
}
else if($page == "page2") {
include('header.php');
include('page2.php');
include('footer.php);
}
?>
Here's my "home" code:
<?php include('header.php'); ?>
<h1>Testing</h1>
<div class="content">
Testing
</div>
<?php include('footer.php'); ?>
Any idea what's wrong? Why am I getting that? Thank ;)
Parse error: syntax error, unexpected T_STRING in /home/mario6/public_html/layout/index.php on line 9
See yourself by clicking here (http://mariovazquez.nu/layout/).
Here's my index.php code:
<?php
$page = $_GET['x'];
if($page == "" || $page == "home") {
include('header.php');
include('home.php');
include('footer.php);
}
else if($page == "page2") {
include('header.php');
include('page2.php');
include('footer.php);
}
?>
Here's my "home" code:
<?php include('header.php'); ?>
<h1>Testing</h1>
<div class="content">
Testing
</div>
<?php include('footer.php'); ?>
Any idea what's wrong? Why am I getting that? Thank ;)