Jeg er ret sikker på at problemet er i denne kode, men hvad skal jeg gøre for at forbedre den?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN" "
http://www.w3.org/TR/html4/frameset.dtd"><html>
<head>
<title>Feltet.dk - LIVE!</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<SCRIPT LANGUAGE="JavaScript">
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=800,height=500,left = 182,top = 84');");
}
</script>
<style type="text/css">
body {
margin-left: 5px;
margin-top: 5px;
margin-right: 5px;
margin-bottom: 5px;
}
a:link{color: #387CB5;text-decoration: none;}
a:visited{color: #387CB5;text-decoration: none;}
a:active{color: #387CB5;text-decoration: none;}
a:hover{color: #000000;text-decoration: none;}
.style30 {font-family : Verdana, Arial; font-size: 10px;}
</style>
<META HTTP-EQUIV=Refresh CONTENT="60;">
</head>
<body>
<table width="480" border="1" bordercolor="#000000" align="center" cellpadding="0" cellspacing="0">
<tr>
<td>
<center>
<? $zid=7669; include "banner.php"; ?>
</center>
</td>
</tr>
</table>
<br>
<table width="100%" border="0" cellspacing="0" cellpadding="1" bgcolor="#000000">
<tr>
<td>
<table border=0 cellpadding=0 cellspacing=4 width=100% class="text" bgcolor="#E6E6E6">
<tbody>
<tr bgcolor="#387CB5">
<td height="16" colspan="3" class=menu> <div align="center">
<img border="0" src="images/livetop.jpg"></div></td>
</tr>
<tr bgcolor="#387CB5">
<td height="16" colspan="3" bgcolor="#FFFFFF" class=menu><center><a href="java script:popUp('images/direkte/2.gif')"><img src="images/direkte/1.gif" border="0"></a><br>
<font size="1" face="Verdana, Arial, Helvetica, sans-serif" color="#000000">(Klik på profilen for at se den i stor format) © edicicloeditore<br>
Automastisk opdatering hvert minut, deaktiver ved at klikke på "Vis alle opdateringer".</font></center>
</td>
</tr>
<tr bgcolor="#387CB5">
<td height="6" colspan="3" bgcolor="#E6E6E6"> </td>
</tr>
<tr bgcolor="#CCCCCC">
<td width="32%" height="14"><div align="center"><span class="style30"><B><a href="nyheder_index.php">OPDATER</a></B></span></div></td>
<td width="38%" bgcolor="#CCCCCC"><div align="center"><span class="style30"><B><a href="nyheder_vis_alle.php">VIS ALLE OPDATERINGER</a></span></div></td>
<td width="30%"><div align="center"><span class="style30"><B><a href="opdatering_arkiv.php">ARKIV</a></B></span></div></td>
</tr>
<tr>
<td colspan="3" valign=top>
<?php
require("databaseforbindelsen....");
$vis = $HTTP_GET_VARS["vis"];
switch($vis) {
case "artikel":
$item_id = $HTTP_GET_VARS["id"];
$siteEkstra = "&id=$item_id&vis=artikel";
$result = mysql_query( "SELECT * FROM $db_table WHERE item_id = '$item_id'" ) or die( "Unable to connect to SQL server. Reason: ".mysql_error());
$row = mysql_fetch_array($result);
?>
<?
break;
default:
$index = $HTTP_GET_VARS["index"];
if (empty($index)) {
$index = 0;
} else {
$index = ($index * 10);
}
$site_ekstra = "&index=$index";
$result = mysql_query( "SELECT item_id FROM $db_table" ) or die( "Unable to connect to SQL server. Reason: ".mysql_error());
$antal = mysql_num_rows($result);
$antalSider = (floor(($antal-1) / 10)+1);
for ($i=0;$i<($antalSider-1);$i++) {
}
?>
</DIV>
</font>
<TABLE WIDTH="100%" CELLSPACING="0" CELLPADDING="0">
<?
$result = mysql_query( "SELECT * FROM $db_table ORDER BY creation_stamp DESC LIMIT $index,10" ) or die( "Unable to connect to SQL server. Reason: ".mysql_error());
while ($row=mysql_fetch_array($result)) {
?>
<TR>
<TD VALIGN="top" bgcolor="#387CB5"><span class="style30"><font color="#FFFFFF" face="Verdana, Arial, Helvetica, sans-serif"><B>
<?=$row[overskrift] ?>
</B></font> </span> <div align="right" class="style30">
</div></TD>
</TR>
<TR>
<TD height="55" VALIGN="top"> <p class="style30"> <font color="#666666" face="Verdana, Arial, Helvetica, sans-serif">
<?
if (($row[fotofil]!="") && (file_exists("$foto_sti/$row[item_id]_$row[fotofil]"))) {
$fotofil = "$foto_sti/$row[item_id]_$row[fotofil]";
$size = GetImageSize("$fotofil");
echo "<p><img src=\"$fotofil\" alt=\"\" $size[3]><br>\n<font size=\"-1\">$row[fototekst]</font>";
}
?>
</font> </p>
<p class="style30"> <font color="#000000" face="Verdana, Arial, Helvetica, sans-serif">
<?=$row[tekst] ?>
</font></TD>
</TR>
<TR>
<TD height="18"><span class="style30"><font face="Verdana, Arial, Helvetica, sans-serif"><br>
<em><font color="#000000">Af
<a href="mailto:<?=$row[email] ?>">
<?=$row[forfatter] ?>
</a>
<?=("den " . date("d/m-Y", $row[creation_stamp]) . " kl. " . date("H:i", $row[creation_stamp]) . "."); ?>
<br>
<br>
</font></em> </font></span></TD>
</TR>
<?
}
?>
</TABLE>
<?
break;
}
?>
</tr>
</tbody>
</table>
</td>
</tr>
</table>
<br>
<center>
<script language="javascript" type="text/javascript">
<!--
document.write('<a href="
http://www.chart.dk/ref.asp?ct=v003&id=91975" target="_blank">');
var myref; myref=document.referrer; if(top.document.referrer!=null) myref=top.document.referrer;
document.write('<img src="
http://cluster.chart.dk/chart.asp?id=91975&style=7&secID=' + Math.random()*10000000 + '&ref=' + escape(myref) + '" border="0" alt="Chart.dk"><');
document.write('/a>');
//-->
</script>
<noscript>
<a href="
http://www.chart.dk/ref.asp?ct=v003&id=91975" target="_blank"><img src="
http://cluster.chart.dk/chart.asp?id=91975&style=7&secID=1" border="0" alt="Chart.dk"></a>
</noscript><br>
</center>
</body>
</html>