I think your query statement will be like this
$query = "INSERT into AppointmentDataSync (ProviderNPI,PatientID,FileURL,FileType,DataSyncID) VALUES('".$providernpi."','".$patientid."','".$fileurl."','".$filetype."','".$datasynid."')";
EDIT
mysql_query($query);
printf("Records inserted: %d\n", mysql_affected_rows());
8
solved Geeting data from post in PHP and insert into table [closed]