You have an error in your SQL syntax. Check the manual that corre
hvad er det er galt herYou have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1
og her er den php code der få den til at skrive det
<?php
if($skriv){
$besked = str_replace("\n", "<BR>", $besked);
$dato_array = getdate();
$dato = $dato_array["mday"] . "/" . $dato_array["mon"] . "-" . $dato_array["year"];
mysql_query("INSERT INTO bog (navn, email, dato, besked) VALUES ('$navn', '$email', '$dato', '$besked')");
}
?>
<HTML>
<HEAD><TITLE>Min gæstebog</TITLE></HEAD>
<BODY>
<CENTER>
<FORM METHOD=POST ACTION=<? echo $PHP_SELF; ?>>
<INPUT TYPE=hidden NAME=skriv VALUE=1>
navn: <INPUT TYPE=text NAME=navn size="20"><BR>
email: <INPUT TYPE=text NAME=email size="20"><BR>
<TEXTAREA NAME=besked COLS=30 ROWS=5></TEXTAREA><BR>
<INPUT TYPE=submit VALUE="send">
</FORM>
<BR><BR>
<TABLE>
<?php
$query = mysql_query("select * from profiler order by id asc limit $s,$pr_side") or die(mysql_error());
while($row = mysql_fetch_array($query))
echo "<TR><TD VALIGN=TOP>";
echo "fra: <A HREF='mailto:$row2[email]'>$row2[email]</A>";
echo "<BR>$row2[dato]";
echo "</TD><TD VALIGN=TOP>$row2[besked]</TD></TR>";
?>
</TABLE>
</CENTER>
</BODY>
</HTML>
