Page 1 of 1

Footer moves up somehow...

Posted: Wed Feb 18, 2004 4:35 am
by AnsonM
Go to http://www.8th-dimension.net/index.php?act=home

As you can see it has a footer at the end of the page...

>> © Copyright 2004, All rights reserved. <<
>> Proudly Hosted By: http://bridgefsw.com! <<

I don't know why its there, but its in its usual place on other pages :cry:

The code for the page is below:

Code: Select all

<?php
$sql = 'SELECT `id` , `date` , `time` , `title` , `news` , `admin` ';
$sql .= 'FROM `news` ';
$sql .= 'WHERE 1 LIMIT 0, 30'; 
$result = mysql_query($sql);
if (!$result) {
echo("<p>Error performing query: " . mysql_error() . "</p>");
exit();
}
  // Display the NEWS
while($x = mysql_fetch_array($result)) {
echo("<table width="100%">
	<tr>
		<td class="menu_heading"><b><center> -[[ Subject: " . $x["title"] . " // Posted on: " . $x["date"] . " @ " . $x["time"] . "By: " . $x["admin"] . "]]-
					</center>
					</b>
		</td>
	</tr>
	<tr> 	
		<td class="news_content"><center>" . $x["news"] . "</td></center></tr><br><br>");
  }
?>
Is it because the whole page is in PHP? I have used includes to add all the pages together...

index.php is as follows:

Code: Select all

<? include "config.php"; ?>

<html>
<head>
	<title>]::[ 8th-dimension.net ]::[</title>
<link rel="stylesheet" href="styles.css" type="text/css">
</head>

<body>

<table width="100%">
	<tr>
		<td align="center"  class="header">
			<? include "includes/header.php"; ?>
		</td>
	</tr>
</table>

<table width="100%" class="body_content">
	<tr>
		<td class="body_menu" valign="top" width=210>
			<? include "includes/menu.php"; ?><br>
			<? include "includes/webmail_login_menu.php"; ?><br>
			<? include "includes/admin_login_menu.php"; ?><br>
			<? include "includes/shout.php"; ?><br>
			<? include "includes/info.php"; ?><br>
			<? include "includes/link2us.php"; ?><br>
			<? include "includes/linksaff.php"; ?>
<br><br>
		</td>

		<td class="body_main" valign="top">
			<? include "includes/pages.php";?>
		</td>

	</tr>
</table>

<table width="100%">
	<tr>
		<td align="center">
			<? include "includes/footer.php"; ?>
		</td>
	</tr>
</table>

</body>
</html>
Thanks :o

Posted: Wed Feb 18, 2004 5:55 am
by markl999
Each of the tables that contains a <td class="menu_heading" .. are missing the closing </table>
Example

Code: Select all

<table width="100%">
      <tr>
        <td class="menu_heading"><b><center> -[[ Subject: Testing // Posted on: 18/02/04 @ 11:00PMBy: AnsonM]]-
          </center>
          </b>
        </td>
      </tr>
      <tr>
        <td class="news_content"><center>I'm just testing this.... If it works.. expect news soon!!
        </td></center>
      </tr>
    </table>  <--- THIS IS MISSING FROM EACH OF THEM
      <br><br>
    <table width="100%">
Once you add these missing </table>'s the layout seems ok.