$pdo=preparedbuser();
$check = $pdo->prepare('UPDATE adress SET city="?", adres="?", number="?", postalcode="?" WHERE id_FK="?"');
$check->bindParam(1, $city, PDO::PARAM_STR);
$check->bindParam(2, $adres, PDO::PARAM_STR);
$check->bindParam(3, $number, PDO::PARAM_STR);
$check->bindParam(4, $postalcode, PDO::PARAM_INT);
$check->bindParam(5, $user, PDO::PARAM_INT);
$check->execute();
if ($check->rowCount() > 0){
echo'inserito';
The UPDATE query don't work. the variables I replace in the query are correct. the database is correctly set. My sql doesn't return any errors; and trying to copy and paste the query in the My sql panel (with the necessary replacements) works. Can someone help me? Thanks