hjælp til $GET_ID
hey :)jeg får en blank side med følgende kode, og jeg får ingen fejl..
<?php
include("config.php");
if(isset($_GET['s'])) $start = $_GET['s'];
else $start = 0;
$id = $_GET['id'];
$query = mysql_query("SELECT id, text, name, modstander, dato, maps, resultat, sort, won, date, lineup FROM kamp WHERE id='$id'");
while ($row = mysql_fetch_array($query)) {
if($row[won] == vandt) {
$vandt = "<font color='#00FF00'> $row[resultat] </font>";
}
if($row[won] == tabt) {
$vandt = "<font color='#FF00000'> $row[resultat] </font>";
}
if($row[won] == tie) {
$vandt = "<font color='#00000FF'> $row[resultat] </font>";
}
?>
<html>
<head>
<title>KampForum</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link rel="stylesheet" href="style.css" type="text/css">
<style type="text/css">
<!--
.apiListHeader {background-color : #2C2B29; border: black 1px solid; color : #FFFFCB; font-size: 11px;}
.apiListItem {border: black 1px solid;}
.apiListTable {font-family: Verdana, Arial; font-size: 11px; color : #FFFFCB;}
-->
</style>
</head>
<body>
<div align="center">
<div id="table">
<table width="925" height="357" border="0" cellpadding="0" cellspacing="0" align="center">
<tr>
<td height="43"> <img src="images/logo2.jpg" width="925" height="115" alt=""></td>
</tr>
<tr>
<td background="images/center.gif" height="21" align="center" class="Overskrift"><a href="http://www.meanoldboys.dk" class="overskrift">Hovedside</a>
| <a href="index.php" class="overskrift">Forside</a> | <a href="slap.php" class="overskrift">Slap</a> | <a href="Aros.php" class="overskrift">Aros</a> | <a href="TRW.php" class="overskrift">TRW</a> | <a href="ooc.php" class="overskrift">OOC </a></td>
</tr>
<tr>
<td bgcolor="#808080" height="200">
<table width="100%" height="200" border="0">
<tr>
<td height="196">
<table width="900" border="1" bordercolor="#000000" cellpadding="0" cellspacing="0" class="Menu" id="table7" height="146" align="center">
<tr>
<td background="images/center.gif" class="overskrift" id="table8" height="21">
<div align="center"> Meanoldboys vs <?php echo "$row[modstander]"; ?></div></td>
</tr>
<tr valign="top">
<td bgcolor="#404040" class="text" height="102" id="table2" valign="top">
<table width="100%" border="1" bordercolor="#000000" bgcolor="#2C2B29" id="table9">
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr class="apiListTable">
<td width="72">Modstander: <? echo "$row[modstander]"; ?> </td>
<td width="122">Resultat: <? echo "$vandt"; ?></td>
</tr>
<tr class="apiListTable">
<td>Liga: <? echo "$row[sort]"; ?></td>
<td>Dato: <? echo "$row[date]"; ?></td>
</tr>
<tr class="apiListTable">
<td>Maps: <? echo "$row[maps]"; ?></td>
<td>Lineup: <? echo "$row[lineup]"; ?></td>
</tr>
<tr class="apiListTable">
<td> </td>
<td> </td>
</tr>
<tr class="apiListTable">
<td>Referat: <? echo "$row[text]"; ?></td>
<td> </td>
</tr>
</table>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="0">
<tr>
<td class="apiListTable"> </td>
</tr>
</table></td>
</tr>
<tr class="apiListTable">
<td height="21" background="images/center.gif" id="table6">
<div align="center">Referat skrevet af <?php echo "$row[name]"; ?> @ <? echo "$row[dato]"; ?></div></td>
</tr>
</table>
</td>
</tr>
</table> </td>
</tr>
<tr>
<td bgcolor="#404040" height="21" background="images/center.gif" class="underskrift">Design
by SiZanX, Code by CoRex - All Rights Reserved [MOB] © 2003 -
2004 </td>
</tr>
</table>
</div>
</div>
<div align="center"><br>
<a href="http://www.chart.dk/ref.asp?id=41340" target=_blank><img alt=chart.dk src="http://cluster.chart.dk/chart.asp?id=41340" border=0></a></div>
</body>
</html>
<?php
}
?>
jeg giver 60 point, og jeg takker på forhånd :)
/FagGHuNTeR
