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 'to,from,message,subjekt,date) VALUES ('sorrelltop','webmaster,'dsa','das','9/Mar' at line 1
$to = $user;
$date = date("j/M/Y");
$subjekt = $_POST['subjekt'];
$message = $_POST['message'];
$from = $_SESSION['username'];
include "sql.php";
mysql_query("INSERT INTO message (to,from,message,subjekt,date) VALUES ('$to','$from,'$message','$subjekt','$date')") or die(mysql_error());
echo "Congratulations Your Message has been send!";
- kan ikke rigtig se fejlen? det burde bare fungere..
meget underligt!