Location: PHPKode > scripts > Sortable Elements > ajax_save.php
<?php

	$table = $_GET['table'];
	$field = trim($_GET['field']);
	$val = $_GET['val'];

	$pk = $_GET['pk'];
	$id = $_GET['id'];

	include_once ('db.php');

	$success = qr("UPDATE $table SET $field = \"$val\" WHERE $pk = $id");

	if ($success){
		echo $id . "_" . $field . "|" . $val;
	}
	else{
		echo "error|" . $id . "_" . $field . "|" . $val;
	}

?>
Return current item: Sortable Elements