update fix

This commit is contained in:
Patryk 2018-12-17 11:56:29 +01:00
parent 96e6bc8356
commit 60a015db8f

View File

@ -15,7 +15,7 @@ $mod_date=date("Y-m-d H:i:s");
$sql = $mysqli->prepare("UPDATE post SET tytul=?,opis=?,tekst=?,data_modyfikacji=? WHERE post_id=?;");
if ($sql)
{
$sql->bind_param("isssi",$title,$meta_desc,$text,$mod_date,$post_id);
$sql->bind_param("ssssi",$title,$meta_desc,$text,$mod_date,$post_id);
$sql->execute();
$sql->close();
}