Your query should look like this:
$insertData = "INSERT INTO facebook (fdId, fullName, email, dob, location, gender, postId)
VALUES ('".$fbId."','".$fullName."','".$email."','".$new_date."','".$location."','".$gender."','".$postId."')";
mysql_select_db('noskunk1_facebook',$vdb);
$result = mysql_query($insertData);
if ($result)) {
echo "New record created successfully";
} else {
echo "Error: " . $insertData . "<br>" . mysql_error($vdb);
}
but consider using pdo
3
solved error mysql_query() expects parameter 1 to be string