I am trying to update some mysql tables with a form but php has this error
but as I see this statement run without errors at netbeans sql editor, what is wrong?
Invalid insert query1: You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near '…
$sqlperson_info = "update person set "
. "last_name=’ " . $last_name . “’ ,”
. "person_id=’ " . $person_id . "’ , "
. “first_name = ’ " . $first_name . " ',”
. "address=’ " . $address . “’ ,”
. "zip=’ " . $zip . “’ ,”
. "community=’ " . $community . “’ ,”
. "arm=’ " . $afm . “’ ,”
. “blood_type=’ " . $blood . “'”
. " where car_id='” . $_SESSION[‘car_id’] . “';”;
if (!$insertQuery) {
die('Invalid insert query1: ’ . mysql_error());
}