I'm trying to figure out why No Enemies.Com looks like someone shot the middle part of it:
http://www.noenemies.com
I've been working in PHP, and it seems as though it completely forgets about the content part of the page. The header also is completely ignored. I'm not sure what the problem is, but here's the code:
That's the code of "index.php." The header and footer files are below:
And now the footer...
I'm not really sure what's wrong with it, but I think it has something to do with the inclusion lines: "include_once('header.html')" and "include_once('footer.html')." Any thoughts?
http://www.noenemies.com
I've been working in PHP, and it seems as though it completely forgets about the content part of the page. The header also is completely ignored. I'm not sure what the problem is, but here's the code:
<?php include_once('header.html'); $page_title='Home'; ?> <div id="nav1"> <ul> <li><strong>home</strong></li> <li><a href="projects.php">projects</a></li> <li><a href="download.php">downloads</a></li> <li><a href="gallery.php">gallery</a></li> <li><a href="articles.php">articles</a></li> <li><a href="services.php">services</a></li> <li><a href="blogs.php">blogs</a></li> </ul> </div> <div id="main"> <div id="bigtitle"><h1>Updates...</h1></div> <div id="sidetitle" align="right"><h1>More...</h1></div> <div id="sidecontent" align="left"> <b>Updates</b> <ul> <li>New website design</li> <li>Started new project: <a href="projects.php?id=plasma">Plasma FPS</a></li> <li>Created the <a href="/forum/index.php">No Enemies.Com Forums</a></li> </ul> <hr> <b>Recent Blog Entries</b> <ul> <li>Blog entry 1</li> <li>Blog entry 2</li> <li>Blog entry 3</li> </ul> <hr> <b>Recent Articles</b> <ul> <li>Article 1</li> <li>Article 2</li> <li>Article 3</li> </ul> <hr> </div> <div id="content"> <p><br><br><br><h2>About Us</h2></p> <p>Welcome to No Enemies Development, previously known as No Enemies Games, and No Enemies.Com. No Enemies Development is a software development company creating mostly games, but sometimes we might output an application or a <a href="http://www.blitzbasic.com">Blitz3D</a> library sometimes. We also offer a selection of services that game developers might use. Take a look around, and you might find something interesting.</p> <p><h2>News</h2></p> <?php $query = "SELECT title, content, DATE_FORMAT(date, '%M %d, %Y') AS date FROM news ORDER BY id DESC"; $result = mysql_query($query); $first = TRUE; $num = 0; while ($row = @mysql_fetch_array($result, MYSQL_ASSOC)) { $num = $num + 1; echo '<p><b> [ '; echo $row['date']; echo ' - '; echo $row['title']; echo ' ]</p></b><p>'; echo $row['content']; if ($num == 5) { break; } echo '</p>'; $first = FALSE; } if ($first) { echo '<i>No news added yet.</i>'; } ?> </div> </div> <?php include_once('footer.html'); ?>
That's the code of "index.php." The header and footer files are below:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html> <head> <title>No Enemies.Com - <?php echo $page_title; ?></title> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta name="description" content="Steven Campbell's Domain - filled with resources, tutorials, downloads, humor, free software, services, and many other offers and rewards. Claim yours today! :D" /> <meta name="keywords" content="Steven, Campbell, resources, reviews, blog, no, enemies, noenemies, downloads, software, opinion, austin, tx, services" /> <meta name="author" content="Steven Campbell" /> <link rel="stylesheet" type="text/css" href="main.css" /> </head> <body><div class="container"> <?php include_once('mysql_connect.php'); ?> <div id="header"><br> <font size="6" color="white"><b>No Enemies.Com</b></font><br> <font size="2" color="#ccf"><b>Currently working on Plasma FPS</b></font> </div>
And now the footer...
<hr /> <div id="nav2"> <ul> <li><a href="about.php">about</a></li> <li><a href="contact.php">contact</a></li> <li><a href="links.php">links</a></li> </ul> </div> <div id="footer" align="center" <p>© Copyright 2004-2005 Steven Campbell<br /> All times are GMT -6 (USA Central)</p> </div> </div> </body> </html>
I'm not really sure what's wrong with it, but I think it has something to do with the inclusion lines: "include_once('header.html')" and "include_once('footer.html')." Any thoughts?