I have this code, but it does not update, and I do not know why.
<?php
// if ($_POST['accemail'] == "" || $_POST['accname'] == "" || $_POST['accphone'] == ""){
// header("Location: myaccount.php");
// } else
// {
include ("db_files/db.php");
$strSQL = "UPDATE usuarios SET email = '".$_POST['accemail']."', nombre = '".$_POST['accname'] ."' razon_social = '".$_POST['accsocialreason']."', nif = '".$_POST['accnif']."', telefono = '".$_POST['accphone']."', direccion = '".$_POST['accaddress']."', ciudad = '".$_POST['acccity']."', provincia = '".$_POST['accprovince']."', codigo_postal = '".$_POST['acccp']."' pais = '".$_POST['acccountry']."' ";
echo $strSQL;
$query = mysqli_query($db, $strSQL);
if (mysqli_connect_errno()){
echo "Failed to connect to MySQL: " . mysqli_connect_error();
// }
// }
?>
I get this error:
Parse error: syntax error, unexpected end of file in C: \ xampp \ htdocs \ oneplayer_git \ accupdate.php on line 15
Does not print variable $strSQL