EditAdd Slider

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