Simple insert into script but for some reason I keep getting the following message;
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 ')' at line 1
My eyes have gone, can you see any mistakes?
<?php
include("data/data.php");
$conn = mysql_connect($servername, $user, $password) or die("Could not connect: " . mysql_error());
mysql_select_db($user, $conn);
$name = $_POST['name'];
$email = $_POST['email'];
$attention = $_POST['attention'];
$title = $_POST['title'];
$details = $_POST['details'];
$query="INSERT INTO contactus values ('', '$name', '$email', '$attention', '$title', '$details',)";
$sql_run = mysql_query($query, $conn) or die(mysql_error());
echo "Thank you for contacting Customer Services, we will respond to email shortly";
echo "<br><br>Click <a href='http://www.site.com/home.php'>here</a> to return to home page.";
?>