İslem.php
<?
include "baglan.php";
if (isset($_POST['onayver'])) {
$ayarkaydet=$db->prepare("UPDATE ayar set
title=:title,
key=:key,
descis=:descis,
author=:author,
footer=:author
where id=1");
$update=$ayarkaydet->execute(array(
'title' => $_POST['title'],
'key' => $_POST['key'],
'descis' => $_POST['descis'],
'author' => $_POST['author'],
'footer' => $_POST['footer']
));
if ($update) {
echo "Güncelleme Başarılı";
} else {
echo "Güncelleme Başarısız";
}
}
?>Sorunsuz Çalışan islem.php<?
include "baglan.php";
if (isset($_POST['onayver'])) {
$ayarkaydet=$db->prepare("UPDATE ayar set
title=:title
where id=1");
$update=$ayarkaydet->execute(array(
'title' => $_POST['title']
));
if ($update) {
echo "Güncelleme Başarılı";
} else {
echo "Güncelleme Başarısız";
}
}
?>