<?php
ob_start();
mysql_connect("host","user","pass") or die(mysql_error());
mysql_select_db("database") or die(mysql_error());
$path = htmlspecialchars($_GET['path']);
if (!empty($path))
{
mysql_query("UPDATE `таблицата` SET pole='$path' WHERE id='5'") or die(mysql_error());
header('Location: index.php');
}
else
{
header('Location: index.php');
}
?>