hej jeg har et lille nyhedssystem men den vil ikke skrive nogen nyhed:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<?php include "nyhed.php" ?>
<html>
<head>
<title>Clan Name</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
.style12 {font-family: Tahoma; color: #999999; font-weight: bold; }
.style13 {font-size: 9px; color: #666666; }
.style14 {color: #CCCCCC}
-->
</style>
</head>
<link href="css.css" rel="STYLESHEET" type="text/css">
<body>
<center>
<table width="776" border="0" cellpadding="0" cellspacing="0" background="images/index_28.jpg">
<!--DWLayoutTable-->
<tr>
<td width="59" rowspan="2" valign="top"><img src="images/sides_01.jpg" width="59" height="459"></td>
<td height="363" colspan="2" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="660" height="69" valign="top"><img src="images/index_02.jpg" width="230" height="69"><img src="images/index_03.jpg" width="201" height="69"><img src="images/index_04.jpg" width="229" height="69"></td>
</tr>
<tr>
<td height="150" valign="top"><img src="images/index_06.jpg" width="371" height="171"><img src="images/index_07.jpg" width="289" height="171"></td>
</tr>
<tr>
<td height="17" valign="top"><img src="images/index_08.jpg" width="660" height="17"></td>
</tr>
<tr>
<td height="27" valign="top"><a href="index.php"><img src="images/index_09.jpg" alt="Home Page" width="104" height="27" border="0"></a><a href="team.php"><img src="images/index_10.jpg" alt="Our Team" width="101" height="27" border="0"></a><a href="videos.php"><img src="images/index_11.jpg" alt="Demo Videos and Screenshots" width="78" height="27" border="0"></a><a href="/forums/"><img src="images/index_12.jpg" alt="Community Message Boards" width="142" height="27" border="0"></a><a href="about.php"><img src="images/index_13.jpg" alt="About Our Clan" width="100" height="27" border="0"></a><a href="signup.php"><img src="images/index_14.jpg" alt="Join Our Team" width="135" height="27" border="0"></a></td>
</tr>
<tr>
<td height="40" valign="top"><img src="images/index_15.jpg" width="660" height="40"></td>
</tr>
<tr>
<td height="28" valign="top"><img src="images/index_16.jpg" width="660" height="28"></td>
</tr>
<tr>
<td height="11" valign="top"><img src="images/index_17.jpg" width="660" height="11"></td>
</tr>
</table></td>
<td width="57" rowspan="2" valign="top"><img src="images/sides_05.jpg" width="57" height="459"></td>
</tr>
<tr>
<td width="231" height="163" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="231" height="122" valign="top"><img src="images/index_18.jpg" width="231" height="28"><a href="http://www.thedesignworld.com" target="_blank"><img src="images/tdw_22.jpg" width="231" height="60" border="0"></a><img src="images/cathead_25.jpg" width="231" height="34"></td>
</tr>
<tr>
<td height="193" valign="top"><div style="margin-left:10px; margin-right:10px"><!--DWLayoutEmptyCell--> </div></td>
</tr>
</table></td>
<td width="429" valign="top"><table width="100%" border="0" cellpadding="0" cellspacing="0">
<!--DWLayoutTable-->
<tr>
<td width="429" height="28" valign="top"><img src="images/index_19.jpg" width="429" height="28"></td>
</tr>
<tr>
<td height="60" valign="top"><div style="margin-left:10px; margin-right:10px"><!--DWLayoutEmptyCell--> <span class="style14">Velkommen til hjemmeside. siden er stadig under opbygning men der kommer løbende nyt</span></div></td>
</tr>
<tr>
<td height="34" valign="top"><img src="images/catheadnews_26.jpg" width="429" height="34"></td>
</tr>
<tr>
<td height="193" valign="top"><div style="margin-left:10px; margin-right:10px"><span class="style12"><?php echo "<p>$overskrift</p>" ?></span><br>
<span class="style13"><?php echo "<p>$tid</p>" ?> </span><br>
<span class="style14">
<?php
echo "<p>$nyhed</p>"
?>
<br>
</span></div></td>
</tr>
</table></td>
</tr>
</table>
<table width="776" border="0" cellpadding="0" cellspacing="0" background="images/index_30.jpg">
<!--DWLayoutTable-->
<tr>
<td width="136" height="32"></td>
<td width="509"> </td>
<td width="131"></td>
</tr>
<tr>
<td height="12"></td>
<td valign="top"><div align="center">Copyright © klan.com. All rights reserved. </div></td>
<td></td>
</tr>
</table>
</center>
</body>
</html>
og min nyheds "hente" side:
<?php include "config.php" ?>
<?php
$query = mysql_query("SELECT * FROM `nyheder`");
if(!isset($query)){
while ($r = mysql_fetch_array($query)) {
$overskrift = $r["overskrift"];
$tid = $r["tid"];
$nyhed = $r["nyhed"];
$forfatter = $r["forfatter"];
}
}else {
echo "hmm... der er noget galt <br>";
echo mysql_error();
}
jeg har aldrig prøvet at lave det sådan her så kan ikke lige finde fejlen
--------------------------------------------------
[THIS IS A SIGNATURE VIRUS! PLEASE COPY IT INTO YOUR OWN SIGNATURE(S)]
--------------------------------------------------
tjeck lige
http://www.udvikleren.dk/groups/?gid=18 hvis du vil hjælpe med at lave et godt spil!