I am using mysql 5.1 and I keep getting this error when I submit my form.
Error: 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
Does anyone know what error I'm making? I am new to mysql and php so I wouldn't be surprised if I am overlooking something serious.
<?php
$con = mysql_connect("localhost","user","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("database", $con);
$partnerbodytype = implode(",",$_POST['partnerbodytype']);
$partnerethnicity= implode(",",$_POST['partnerethnicity']);
$partnersage= implode(",",$_POST['partnersage']);
$partnersgender= implode(",",$_POST['partnersgender']);
$partnersorienation= implode(",",$_POST['partnersorientation']);
$partnerspresentation= implode(",",$_POST['partnerspresentation']);
THANKS IN ADVANCE!