Here is my code which is generating the error:
$query =" INSERT INTO clients (client_id,name,surname,tel1,tel2,id_num,address,zip_code) VALUES ($updating_id,$updatedName1,$updatedSurname1,$updatedTel1,$updatedTel2,$updatedAddress1,'0111')
ON DUPLICATE KEY UPDATE (name='$updatedName1',surname='$updatedSurname1',tel1=$updatedTel1,tel2=$updatedTel2,id_num=$updatedId_num1 address=$updatedAddress1,zip_code='0111')";
and here's the 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 '455 4885, 011 5558 556,132 heeldon str borrowdale,'0111') ' at line 1