Redirect function

git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@15 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
jakubvrana
2007-07-03 06:48:18 +00:00
parent 01f528efe5
commit 42bc448e3c
6 changed files with 19 additions and 23 deletions

View File

@@ -2,9 +2,7 @@
if ($_POST) {
$result = mysql_query($_POST["query"]); //! multiple commands
if ($result === true) {
$_SESSION["message"] = sprintf(lang('Query executed OK, %d row(s) affected.'), mysql_affected_rows());
header("Location: " . $SELF . "sql=" . (SID ? "&" . SID : ""));
exit;
redirect($SELF . "sql=", sprintf(lang('Query executed OK, %d row(s) affected.'), mysql_affected_rows()));
}
$error = mysql_error();
}