Hey den vil ikke skrive noget fra min database
Mit script
<?php
include("admin/config.php");
$msg = "";
$result = mysql_query("Select * from wars");
$num = mysql_num_rows($result);
$n = 0;
?>
<html>
<head>
<title>wars</title>
<p><?php echo $msg?></p>
</head>
<body>
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber2">
<tr>
<td width="7%" style="border-bottom-style: solid; border-bottom-width: 1" align="center">
Type</td>
<td width="2%" style="border-bottom-style: solid; border-bottom-width: 1" align="center">
Land</td>
<td width="22%" style="border-bottom-style: solid; border-bottom-width: 1" align="center">
? vs ?</td>
<td width="2%" style="border-bottom-style: solid; border-bottom-width: 1" align="center">
Land</td>
<td width="8%" style="border-bottom-style: solid; border-bottom-width: 1" align="center">
Score</td>
<td width="8%" style="border-bottom-style: solid; border-bottom-width: 1" align="center"> </td>
</tr>
<?php while($row = mysql_fetch_array($result, MYSQL_BOTH)){
$n++;
}
?>
<tr>
<td width="7%" style="border-top-style: none; border-top-width: medium">
<p align="center"><?php echo $row['navn'];?></td>
<td width="2%" style="border-top-style: none; border-top-width: medium">
<p align="center"><?php echo $row['hl'];?></td>
<td width="22%" style="border-top-style: none; border-top-width: medium">
<p align="center"><?php echo $row['hjemme'];?> vs <?php echo $row['ude'];?></td>
<td width="2%" style="border-top-style: none; border-top-width: medium">
<p align="center"><?php echo $row['ul'];?></td>
<td width="8%" style="border-top-style: none; border-top-width: medium">
<p align="center"><?php echo $row['hscore'];?> - <?php echo $row['uscore'];?></td>
<td width="8%" style="border-top-style: none; border-top-width: medium" align="center">
<b><?php echo $row['winner'];?></font></b></td>
</tr>
</table>
</body>
</html>