everything ok I also got output but, my database in not update if any one able to find Problem in this code please help me.
<?php
include("../includes/db.php");
if(isset($_GET['edit_slider'])) {
$get_id=$_GET['edit_slider'];
$get_slider="select * from slide_bar where sl='$get_id'";
$run_slider= mysqli_query($con , $get_slider);
$row_slider=mysqli_fetch_array($run_slider);
$sl=$row_slider['sl'];
$img= $row_slider['img'];
$msg= $row_slider['desc'];
}
?>
<!-- content starter here -->
<div class="content_wrapper">
<div id="content_area">
<div>
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
<script>tinymce.init({ selector:'textarea' });</script>
<form action="" method="post" enctype="multipart/form-data">
<table align="center" width="795" border="2" >
<tr align="center">
<td colspan="8"><h2>Update Slider </h2> </td>
</tr>
<tr>
<td align="right"><b>Image :</b></td>
<td><input type="file" name="image" /><img src="../img/slider/<?php echo $img ?>" width="60" height="60"/></td>
</tr>
<tr>
<td align="right"><b>Text Area :</b></td>
<td><textarea name="message" cols="20" rows="10" ><?php echo $msg ;?></textarea></td>
</tr>
<tr align="center" >
<td colspan="7"><input type="submit" name="update_post" value="Update Slide Now" /></td>
</tr>
</table>
</form>
<!-- box ads end -->
</div>
</div>
</div>
<!-- content end here -->
<!-- content end here -->
<!--....................-->
<?php
if(isset($_POST['update_post'])) {
$update_id=$sl;
$msg= $_POST['message'];
$image=$_FILES['image']['name'];
$image_tmp=$_FILES['image']['tmp_name'];
move_uploaded_file($image_tmp,"../img/slider/$image");
$update_product="update slide_bar set desc='$msg',img='$image' where sl='$get_id'";
$run_update= mysqli_query($con, $update_product);
if ($update_product){
echo "<script>alert('slide Has been update!')</script>";
echo "<script>window.open('index.php?view_slider','_self')</script>";
}
}
?>