Var olan sayfamı düzenlemeye çalıştığımda işlem başarılı diyor ama herhangi bir değişiklik yapmıyor. Formdan veriler geliyor o konuda bir problem yok ama sanki sorgumda bir problem var kafa durdu iyice. Yardımcı olursanız sevinirim.
if (isset($_POST["save"])):
$update = $database->prepare('update tm_pages set title= :title, text= :text, catid= :catid, status= :status where id= :id');
$update->bindParam(':title', cleanMe($_POST['title']));
$update->bindParam(':text', cleanMe($_POST['text']));
$update->bindParam(':catid', cleanMe($_POST['catid']));
$update->bindParam(':status', cleanMe($_POST['status']));
$update->bindParam(':id', $id);
$update->execute();
if($update): header("Location:dashboard.php?section=pages&msg=success#pages");
else:
header("Location:dashboard.php?section=pages&msg=error#pages");
endif;
endif;cleanMe fonksiyonum
function cleanMe($input) {
$input = mysql_real_escape_string($input);
$input = htmlspecialchars($input);
$input = strip_tags($input);
$input = stripslashes($input);
return $input;
}