[php]<?php
include(“connect.php”);
$content = ‘’;
if(isset($_POST[‘submit’])){
$title = $_POST[“title”];
$name = $_POST[“name”];
$message = $_POST[“content”];
$query = mysql_query(“INSERT INTO ‘Contact’ (id, title, name, content)
VALUES (’’,’$title’,’$name’,’$message’)”);
if($query){
$content = ‘Successfully contacted the Eternal Power Staff!’;
}
else
{
$content = 'For some reason your message was not sent!
’ . mysql_error();
}
}
else
{
$content = ’
Title:'; }
Name:
Message:
?>[/php]
Everytime I submit the form, I get an error:
For some reason your message was not sent!
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 ‘‘Contact’ (id, title, name, content) \ VALUES (’’,‘Test Title’,‘Liam Ho’ at line 1