Weeelo
12-02-2004, 04:24 PM
Hi...
http://footballworld.dk/ny/test.php - It's easy to see that something is wrong. The content seems to be moved outside the rest of the site.
Here's the relevant in my code:
<td cellpadding="0" cellspacing="0" valign="top" align="left" width="840">
<!-- TEXT START -->
<?php include("mysql.php");?>
<table align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="txt">
<b><a href="http://footballworld.dk/info.php">Info</a></b> | <a href="http://footballworld.dk/kontakt.php">Kontakt</a> | <a href="http://footballworld.dk/forum/">Forum</a> | <a href="http://footballworld.dk/links.php">Links</a></td>
</tr>
<tr>
<td>
<img src="http://www.footballworld.dk/ny/_grafik/topline.gif" width="840" height="1" alt=""></td>
</tr>
<tr>
<td valign="top" align="left" class="txt"><br>
<?
$query = mysql_query("SELECT * FROM _nyheder ORDER BY date DESC LIMIT 15");
while ($r = mysql_fetch_array($query)) {
$color = $q++ % 2 ? '#D7FFF9' : '#E0FEF9';
// det man nu vil gøre for hver besked!
$r[overskrift] = stripslashes($r[overskrift]);
$dato = $r[date];
$maaned = date(m, $dato);
$dag = date("d/", $dato);
$Y = date("-Y", $dato);
$H = date(" H:", $dato);
$I = date("i", $dato);
$class = news;
echo"
<table width=100% align=center class=news style=\"border-left: 1px solid #000000; border-right: 1px solid #000000;\" cellspacing=0 cellpadding=2>
<tr style=\"background-color: $color;\">
<td align=left class=$class width=30%>$dag$maaned$Y $H$I</td>
<td align=left class=$class width=70%><b><a href=http://www.footballworld.dk/nyheder/nyhed.php?id=$r[id]>$r[overskrift]</a></b></td>
</tr>
</table>
";
}
?>
</td>
</tr>
</table>
<!-- TEXT SLUT -->
</td>
I'´ll hope someone can help me here..
http://footballworld.dk/ny/test.php - It's easy to see that something is wrong. The content seems to be moved outside the rest of the site.
Here's the relevant in my code:
<td cellpadding="0" cellspacing="0" valign="top" align="left" width="840">
<!-- TEXT START -->
<?php include("mysql.php");?>
<table align="left" cellpadding="0" cellspacing="0">
<tr>
<td align="center" class="txt">
<b><a href="http://footballworld.dk/info.php">Info</a></b> | <a href="http://footballworld.dk/kontakt.php">Kontakt</a> | <a href="http://footballworld.dk/forum/">Forum</a> | <a href="http://footballworld.dk/links.php">Links</a></td>
</tr>
<tr>
<td>
<img src="http://www.footballworld.dk/ny/_grafik/topline.gif" width="840" height="1" alt=""></td>
</tr>
<tr>
<td valign="top" align="left" class="txt"><br>
<?
$query = mysql_query("SELECT * FROM _nyheder ORDER BY date DESC LIMIT 15");
while ($r = mysql_fetch_array($query)) {
$color = $q++ % 2 ? '#D7FFF9' : '#E0FEF9';
// det man nu vil gøre for hver besked!
$r[overskrift] = stripslashes($r[overskrift]);
$dato = $r[date];
$maaned = date(m, $dato);
$dag = date("d/", $dato);
$Y = date("-Y", $dato);
$H = date(" H:", $dato);
$I = date("i", $dato);
$class = news;
echo"
<table width=100% align=center class=news style=\"border-left: 1px solid #000000; border-right: 1px solid #000000;\" cellspacing=0 cellpadding=2>
<tr style=\"background-color: $color;\">
<td align=left class=$class width=30%>$dag$maaned$Y $H$I</td>
<td align=left class=$class width=70%><b><a href=http://www.footballworld.dk/nyheder/nyhed.php?id=$r[id]>$r[overskrift]</a></b></td>
</tr>
</table>
";
}
?>
</td>
</tr>
</table>
<!-- TEXT SLUT -->
</td>
I'´ll hope someone can help me here..