<?php
include('../helpers/init.php');

if(isset($_POST['updateService'])){
	$id = $_POST['id'];
    $cont = $_POST['content'];
    
	 	$sql = "update pages set content='$cont' where page_id='$id'";
		if(query($sql)){
			header('Location:../pages/update-content.php?page_id='.$id.'&result=success');
		}else{
			$error =  error();
			header('Location:../pages/update-content.php?page_id='.$id.'&result=failer');
		}
	/*end of */
	}

//------------------ Client update ends here ------

?>