Hey
Jeg har et stort problem med denne kode
<?php
$sql_debat = mysql_query("SELECT * FROM debat_thread ORDER BY DATO DESC limit 5");
while($show_debat = mysql_fetch_array($sql_debat)) {
print "<a class='menu' href='?page=show_emne&id=".$show_debat[id]."' >";
print "- ";
echo $show_debat[emne];
print "<br />";
print "</a>";
}
?>
Denne lille stykke kode indsættes i mit design self! men så forsvinder mit design, og der loades intet på siden.
<?php
session_start();
include "mysql_connections.inc.php";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="stylesheet" type="text/css" href="style/css.css" />
<title>Velkommen til UngNews.eu</title>
</head>
<body>
<table width="868" border="0" align="center" cellpadding="0" cellspacing="0" id="ramme">
<tr>
<td height="136" colspan="6" id="top"> </td>
</tr>
<tr>
<td valign="top">
<div id="left">
<br />
<div class="generelt"></div>
<div id="menu_ramme">
<div class="menu">
<ul class="menu5">
<li><a href="?page=home">Forsiden</a></li>
<li><a href="?page=forum/fora">Forum</a></li>
<li><a href="?page=games/search">Spil / Film </a></li>
<li><a href="?page=news/index">Nyheds Arkiv </a></li>
<li><a href="?page=music/music_movies">Musik / Film </a></li>
<li><a href="?page=ungnews_jury">Jury</a></li>
<li><a href="?page=contact_us">Kontakt</a></li>
</ul>
</div>
</div>
<div id="mellemrum"></div>
<div class="login"></div>
<div id="menu_ramme">
<?php
if(session_is_registered("username") AND ("password") AND ("secure") AND ("email_address")) {
include_once("logged/index.php");
} else {
echo "<form action='login' method='post'>";
echo "Burgernavn: <br />";
echo "<input type='text' name='username' class='input' size='13'><br />";
echo "Password: <br />";
echo "<input type='password' name='password' class='input' size='13'><br />";
echo "<input type='submit' name='login' class='submit' value='Login'";
echo "</form>";
echo "<br />";
echo "<a href='?page=register' class='new'>- Opret bruger</a><br />";
echo "<a href='?page=lost_passwd' class='new'>- Glemt kodeord</a>";
}
}
?>
</div>
<div id="mellemrum"></div>
<div class="statestik"></div>
<div id="menu_ramme">
<div align="center"><a href="http://www.partner-ads.com/dk/klikbanner.php?partnerid=3889&bannerid=3582" target=_blank>
<img src="http://www.partner-ads.com/dk/visbanner.php?partnerid=3889&bannerid=3582" border=0></a></div>
</div>
<div id="mellemrum"></div>
</div> </td>
<td valign="top">
<div id="middle">
<?php
if($_GET['page'] =="") {
$fil = "home.php";
} else {
$fil = "$_GET[page].php";
}
if(file_exists($fil)) {
print "<br />";
include "$fil";
print "<br /><br />";
} else {
print "Siden <strong>$_GET[page].php</strong> kunne ikke findes på";
$_SERVER['HTTP_HOST'];
print "<br /><br />";
}
?>
</div> </td>
<td valign="top">
<div id="right">
<br />
<div class="sog"></div>
<div id="right_menuramme"><?php include_once("search.php"); ?></div>
<div id="mellemrum"></div>
<div class="treath_10new"></div>
<div id="right_menuramme">
<?php
$sql_debat = mysql_query("SELECT * FROM debat_thread ORDER BY DATO DESC limit 5");
while($show_debat = mysql_fetch_array($sql_debat)) {
print "<a class='menu' href='?page=show_emne&id=".$show_debat[id]."' >";
print "- ";
echo $show_debat[emne];
print "<br />";
print "</a>";
}
?>
</div>
<div id="mellemrum"></div>
<div class="partner"></div>
<div id="right_menuramme"><a href="http://www.crump.dk" target="_blank" class="new">- Crump</a></div>
<div id="mellemrum"> </div>
</div> </td>
</tr>
</table>
</body>
</html>
I kan se hvad jeg mener på
http://www.ungnews.euHåber i kan se fejlen, for jeg kan ikke!
/Jacob Veile
Indlæg senest redigeret d. 01.11.2006 22:51 af Bruger #8516