mirror of
https://github.com/vrana/adminer.git
synced 2026-01-04 14:50:56 +01:00
Redirect function
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@15 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user