Underligt fejl i tabeller med PHP
Hey, hvis i ser på www.znoff.dk/com så kommer menuen frem udenfor tabellen, men hvis i så lige trykker F5 en enkelt gang, så bliver den vist rigtigt...Hvorfor gør den det? :S
Her er min index fil:
<?
session_start();
?>
<html>
<?
include("inc/config.php");
include("inc/sql.php");
if($_REQUEST[inc] == NULL) {
$inc = 1;
} else {
$inc = $_REQUEST[inc];
}
$s_side = mysql_query("SELECT id,side,status,navn,admin,onl,off FROM menu WHERE id = '$inc'");
$side = mysql_fetch_array($s_side);
?>
<head>
<title>Community</title>
</head>
<body>
<div align="center">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1" height="100%">
<tr>
<td width="1200" valign="top" align="center">
</td>
</tr>
<tr>
<td width="1200" valign="top">
<div align="center">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="1200" id="AutoNumber2" height="600">
<tr>
<td width="100%" colspan="2" height="69" align="center"> <? include("inc/top.php"); ?></td>
</tr>
<tr>
<td width="12%" height="399" rowspan="2" align="center" valign="top"><? include("inc/menu.php"); ?></td>
<td width="88%" height="342" align="left" valign="top">
<?
if($side[onl] == 'yes' AND $_AUTH[logget] == 'ja' OR $side[off] == 'yes' AND $_AUTH[logget] != 'ja' OR $side[id] == '7') {
if($side[side] == NULL) {
$side[side] = 'forside';
}
include("inc/$side[side].php");
} else {
print "Du har ikke adgang til denne side!";
}
?>
</td>
</tr>
<tr>
<td width="88%" height="57" align="center" valign="top"> <? include("inc/bund.php"); ?></td>
</tr>
</table>
</div>
</td>
</tr>
</table>
</div>
</body>
</html>
