Вот фрагмент моего кода, выдает ошибку: 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 '@yandex.ru, phone=+7(920)523-31-22, primary_messenger=3, primary_net' at line 7
Сам код:
<?php
if (isset($_POST['save']))
{
$res = mysqli_query($link, "update clients set
full_name='".$_POST['full_name']."',
detailed_description='".$_POST['detailed_description']."',
customer=".$_POST['customer'].",
size_lower_body=".$_POST['size_lower_body'].",
size_upper_body=".$_POST['size_upper_body'].",
email=".$_POST['email'].",
phone=".$_POST['phone'].",
primary_messenger=".$_POST['primary_messenger'].",
primary_network=".$_POST['primary_network'].",
network_link='".$_POST['network_link']."' where id_client=".(int)$_POST['id_client']) or die(mysqli_error());
}
?>