Hora por que me sale esto, me esta volviendo loooooocccooooooooooooo
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 '9 354 112-5908 ', Mail ='
[email protected] '' at line 5
Código PHP:
<!doctype html>
<html>
<head>
<title>Modificación</title>
</head>
<body>
<?php
$valor = $_POST['nresol'];
$Nyap = $_POST['Nyap'];
$Cod_act = $_POST['Cod_act'];
$Cod_area = $_POST['Cod_area'];
$Nombre_fant = $_POST['Nombre_fant'];
$Tel = $_POST['Tel'];
$Mail = $_POST['Mail'];
//$valor = $_POST['nresol'];
echo $valor;
$mysql=new mysqli("localhost","root","","tural");
if ($mysql->connect_error)
die("Problemas con la conexión a la base de datos");
$mysql->query("update prestad set
Nyap = '$Nyap',
Cod_act = '$Cod_act',
Cod_area = '$Cod_area',
Nombre_fant = $Nombre_fant',
Tel = '$Tel',
Mail ='$Mail'
where 'N_Resol'= '$valor'; ")
or die($mysql->error);
echo 'Se modificaron los datos del artículo';
$mysql->close();
?>
</body>
</html>