Hvorfor dur denne ikke mere
hvorfor dur denne tagwall ikke mere ??det er en tagwall jeg har lavet for længe siden
men nu virker den ikke mere og jeg kan ikke finde fejlen ..
den kan godt lave et udtræk fra min datebase men den til ikke tilføje noget ...
håber der er noget hjælp at hente
<?
if($nick && $msg ) {
$nick = htmlentities($nick);
$msg = htmlentities($msg);
mysql_query("insert into tagwall(id, navn, msg, hp) values ('$nick','$msg','$hp')");
}
?>
<form action="<? $PHP_SELF ?>" method="post">
<table border="0" width="100%" style="border-collapse: collapse" bordercolor="#111111" cellpadding="0" cellspacing="0" height="101">
<tr>
<td width="100%" height="16"><font color="000066" face="verdana" size="1">Navn:</font></td>
<td width="100%" height="16" ></td>
</tr>
<tr>
<td width="100%" height="22"> <font size="2">
<input type="text" name="nick" size="25" maxlength="20" style="border: 1px solid #000000; font-family:Verdana; font-size:8 pt">
</font></td>
</tr>
<tr>
<td width="100%" height="16"><font color="000066" face="verdana" size="1">Hjemmeside:</font></td>
<td width="100%" height="16" ></td>
</tr>
<tr>
<td width="100%" height="22"> <font size="2">
<input type="text" value="http://" name="hp" size="25" maxlength="50" style="border: 1px solid #000000; font-family:Verdana; font-size:8 pt">
</font></td>
</tr>
<tr>
<td width="100%" height="37" valign="top"> <font color="000066" face="verdana" size="1">Tag:</font><font face="verdana" size="2"><br>
</font>
<textarea rows="4" name="msg" cols="24" style="border: 1px solid #000000; font-family:Verdana; font-size:8 pt"></textarea><font size="2">
</font></td>
</tr>
<tr>
<td width="100%" height="26"> <font size="2">
<input type="submit" value="Skriv Tag" style="border: 1px solid #000000; font-family:Verdana; font-size:8 pt">
<input type="submit" class="button" style="border: 1px solid #000000; ; font-family:Verdana; font-size:8 pt" name="opdater" value="Opdater"></font></td>
</tr>
</tabel>
</form>
<tr><td width="100%">
<?
$result = mysql_query("select * from tagwall order by id desc 0,1");
$res = mysql_query("SELECT *, UNIX_TIMESTAMP(date) AS tid FROM tagwall ORDER BY id desc limit 5") or die("Der er sket en fejl: ".mysql_error());
$col0 = "ffffff";
$col1 = "efefef";
$i=0;
while($row = mysql_fetch_array($res)) {
++$i;
$col = "col" . $i%2;
$tid = $row[tid];
$tid = date(" d/m-y H:i", $tid);
echo"
<table border=\"0\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"100%\">
<tr>
<td width=\"500\" colspan=\"2\" style=\"border-left: 1px dotted #000066; border-right: 1px dotted #000066; border-top: 1px dotted #000066\" valign=\"top\"><font face=\"Verdana\"><font color=\"#000066\"><font size=\"1\">$row[navn] Siger:</td>
</tr>
<tr>
<td width=\"300\" style=\"border: 1px dotted #000066\" valign=\"top\"><font face=\"Verdana\"><font color=\"#000066\"><font size=\"1\">$row[msg]</td>
<td width=\"200\" style=\"border-right: 1px dotted #000066; border-top: 1px dotted #000066; border-bottom: 1px dotted #000066\" valign=\"top\">
<b><font face=\"Verdana\"><font color=\"#000066\"><font size=\"1\">Skrevet af: </b>$row[navn]<br>
<font face=\"Verdana\"><font color=\"#000066\"><font size=\"1\"><b>HP:</b> <a href=$row[hp]>$row[hp]</a><br>
<b><font face=\"Verdana\"><font color=\"#000066\"><font size=\"1\">Dato:</b>$tid<br>
<font face=\"Verdana\"><font color=\"#000066\"><b>IP:</b> $row[ip]<font size=\"1\"></td>
</tr>
</table>
<br>
";
}
?>
