diff --git a/htdocs/sql/pmd_save_pos.php b/htdocs/sql/pmd_save_pos.php
new file mode 100755
--- /dev/null
+++ b/htdocs/sql/pmd_save_pos.php
@@ -0,0 +1,65 @@
+ $value) {
+ $KEY = empty($IS_AJAX) ? urldecode($key) : $key; // table name decode (post PDF exp/imp)
+ list($DB,$TAB) = explode(".", $KEY);
+ PMA_query_as_cu('DELETE FROM '.$GLOBALS['cfgRelation']['designer_coords'].'
+ WHERE `db_name` = \'' . PMA_sqlAddslashes($DB) . '\'
+ AND `table_name` = \'' . PMA_sqlAddslashes($TAB) . '\'', 1, PMA_DBI_QUERY_STORE);
+
+ PMA_query_as_cu('INSERT INTO '.$GLOBALS['cfgRelation']['designer_coords'].'
+ (db_name, table_name, x, y, v, h)
+ VALUES ('
+ . '\'' . PMA_sqlAddslashes($DB) . '\', '
+ . '\'' . PMA_sqlAddslashes($TAB) . '\', '
+ . '\'' . PMA_sqlAddslashes($t_x[$key]) . '\', '
+ . '\'' . PMA_sqlAddslashes($t_y[$key]) . '\', '
+ . '\'' . PMA_sqlAddslashes($t_v[$key]) . '\', '
+ . '\'' . PMA_sqlAddslashes($t_h[$key]) . '\''
+ . ')', 1 ,PMA_DBI_QUERY_STORE);
+}
+//----------------------------------------------------------------------------
+
+function PMD_err_sav() {
+ global $die_save_pos; // if this file included
+ if (! empty($die_save_pos)) {
+ header("Content-Type: text/xml; charset=utf-8");
+ header("Cache-Control: no-cache");
+ die('');
+ }
+}
+
+if(! empty($die_save_pos)) {
+ header("Content-Type: text/xml; charset=utf-8");
+ header("Cache-Control: no-cache");
+?>
+'>
+