Contact Page

Success! Content successfully added.
"; echo ''; } else { $message = "
Error! Problem uploading Content.
"; } } if(!empty($_POST['btnedit'])=="Save Changes") { $contact_text= $_POST['contact_text']; $contact_sub_text= $_POST['contact_sub_text']; $location= $_POST['location']; $email= $_POST['email']; $phone= $_POST['phone']; $map= $_POST['map']; 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']; } //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_contact` SET `contact_text`='$contact_text',`contact_sub_text`='$contact_sub_text',`location`='$location',`email`='$email',`phone`='$phone',`map`='$map',`banner_image`='$banner_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; } ?>