for debugging in such situations, i always do
$sql = " whatever query ".$var;
echo $sql;
die();
now what you can do is see the query, copy it into the mysql console or wherever you wish...and run it from there...this will precisely tell you the error ...
i didnt want to read through the code much, being lazy... but one possible error could be the missing quotes around the variables in the query ... you know string parameters require quotes....
try something like this
$sql = " insert into abc ( a1) values ('".$var."')";
dos_killer
Junior Poster in Training
50 posts since Dec 2010
Reputation Points: 15
Solved Threads: 4