Destination Table

0 ) { while ($row = mysqli_fetch_array($query)) { $id=$row['id']; $img=$row['image']; $title=$row['title']; $desc=$row['des']; $location=$row['location']; $time=$row['time']; ?>
S. No. Image Heading Location Price Actions
<?=$title?>
alert('Destination deleted succesfully');window.location='destination.php';"; } else { echo ""; } } ?> alert('Destination insert succesfully');window.location='destination.php';"); } else { echo(""); } } else { echo(""); } } else { echo(""); } } // ELSE CONDITION CLOSED ?> alert('update succesfully');window.location='destination.php';"; } } else if($image_name == "") { $sql="UPDATE `destination` SET `image`='$old_image',`title`='$title',`des`='$desc',`location`='$location',`price`='$price',`time`='$time' WHERE `id`='$get_id'"; $query=mysqli_query($conn,$sql) or die(mysqli_error($conn)); if($query) { echo ""; } } } } ?>