Yazılım Soru - Kod Kısmı
if (isset($_POST['update'])) {
$update_id = $_GET['edit_form'];
$post_title = $_POST['title'];
$post_date = date('y-m-d');
$post_author = $_POST['author'];
$post_content = $_POST['content'];
$post_image_type = $_FILES['image']['type'];
$post_image_size = $_FILES['image']['size'];
$post_image_tmp = $_FILES['image']['tmp_name'];
move_uploaded_file($post_image_temp,"../images/$post_image");
$update_query = "update posts set post_title='$post_title', post_date='$post_date',
post_author='$post_author', post_image='$post_image', post_content='$post_content'
where post_id='$update_id' ";
if(mysql_query($update_query)) {
echo "<script>alert('İçerik güncellendi')</script>";
echo "<script>window.open('view.php',_self)</script>";
}
}