fejl i insert?
Fejlen er på line 9<body topmargin="0" leftmargin="0" rightmargin="0" bottommargin="0" marginwidth="0" marginheight="0">
<script> function Refresh() {
location.href = "chatbox.php";
}
setTimeout("Refresh();",2000);</script>
<?
include "connect.php";
if($_POST['message']){
mysql_query("INSERT INTO ".$conf['db']."chatbox (username, message) VALUES ('".$htmlspecialchars($_POST['username'])."', '".$htmlspecialchars($_POST['message'])."')")or die(mysql_error());
}
$svar = mysql_query("SELECT * FROM ".$conf['db']."chatbox ORDER BY id DESC") or die(mysql_error());
while($row = mysql_fetch_array($svar)){
echo $row['username']." > ".$row['message']."<br>";
}
?>
