Denne kode:
<?php
include("db.php");
if ($_POST[name] && $_POST[text]) {
mysql_query("INSERT INTO tagwall (by,text,time) VALUES ('$_POST[name]','$_POST[text]','time()')") or die(mysql_error());
}
?>
Laver denne fejl:
You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'by,text,time) VALUES ('Tagwall','123123','time()')' at line 1