<?php  
	include('db_coni.php');
	$id = $_POST["id"];  
	$text = $_POST["text"];  
	$column_name = $_POST["column_name"];  
	$sql = "UPDATE items SET ".$column_name."='".$text."' WHERE item_id='".$id."'";  
	if(mysqli_query($connecti, $sql))  
	{  
		echo 'Data Updated';  
	}  
 ?>