Leadership Page

Success! Content successfully added.
"; echo ''; } else { $message = "
Error! Problem uploading Content.
"; } } if(!empty($_POST['btnedit'])=="Save Changes") { $page_name= mysqli_real_escape_string($conn,$_POST['page_name']); if($_FILES['banner_image']['name']) { $banner_image = time() . '_' . $_FILES['banner_image']['name']; $destination = '../upload/banner/' . $banner_image; move_uploaded_file($_FILES['banner_image']['tmp_name'], $destination); } else { $banner_image=$_POST['banner_image_prv']; } if($_FILES['sub_image']['name']) { $sub_image = time() . '_' . $_FILES['sub_image']['name']; $destination = '../upload/banner/' . $sub_image; move_uploaded_file($_FILES['sub_image']['tmp_name'], $destination); } else { $sub_image=$_POST['sub_image_prv']; } //echo "UPDATE `tm_home_page` SET `slider_title`='$slider_title',`banner_image`='$banner_image',`restaurant_id`='$restaurant_id' WHERE `id`='".$_REQUEST['slider_id']."'"; //die; $update_sql= mysqli_query($conn,"UPDATE `tm_leadership_page` SET `page_name`='$page_name',`banner_image`='$banner_image',`sub_image`='$sub_image' WHERE `id`='".$row1['id']."'"); if ($update_sql) { $message = "
Success! Content updated successfully.
"; echo ''; } else { $message = "
Error! Problem updating Content.
"; } } ?>
window.location='index.php'"; exit; } ?>