Try changing:
include('database.php');
$_GET['name'];
$_NAME=$_GET['name'];
To:
include('database.php');
$_NAME=$_POST['name'];
The documentation says:
Once the in-place editor form is submitted, it sends a POST request to the URL that is specified in the editor’s parameters along with three form fields
By writing $_NAME=$_GET['name'];
you were expecting the value come over a GET
request, but the plugin sends the value using a POST
request. That's what is the culprit here, I suppose.
Also, keep in mind what Marc B said in his comment. The code is very vunerable to SQL injection attacks. To make it less vunerable, use at least mysql_real_escape_string()
(more: http://php.net/manual/pl/function.mysql-real-escape-string.php) or use prepared statements (a good tutorial: http://www.ultramegatech.com/2009/07/using-mysql-prepared-statements-in-php/).