From ccadcbec3348a989a6587a602060c834d40c0b9c Mon Sep 17 00:00:00 2001 From: jakubvrana Date: Wed, 4 Jul 2007 14:37:54 +0000 Subject: [PATCH] Use default type length git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@22 7c3ca157-0c34-0410-bff1-cbf682f78f5c --- edit.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/edit.inc.php b/edit.inc.php index 593cf4ce..246d3a18 100644 --- a/edit.inc.php +++ b/edit.inc.php @@ -27,7 +27,7 @@ if ($_POST) { } } if (mysql_query($query)) { - redirect($SELF . "select=" . urlencode($_GET["edit"]), $message); + redirect($SELF . ($_POST["insert"] ? "edit=" : "select=") . urlencode($_GET["edit"]), $message); } $error = mysql_error(); } @@ -66,6 +66,7 @@ if ($_POST) {
$field) { echo "\n"; } -echo "\n"; +echo "\n"; ?>
" . htmlspecialchars($name) . ""; $value = ($data ? $data[$name] : $field["default"]); @@ -90,14 +91,14 @@ foreach ($fields as $name => $field) { } elseif (strpos($field["type"], "text") !== false) { echo ''; } else { //! numbers, date, binary - echo ''; + echo ''; } if ($field["null"] && preg_match('~char|text|set~', $field["type"])) { echo ''; } echo "
" . ($where ? " " : "") . "
" . ($where ? " " : "") . "