display SQL after edit row
This commit is contained in:
@@ -5,6 +5,9 @@ phpMyAdmin - Changelog
|
|||||||
$Id$
|
$Id$
|
||||||
$Source$
|
$Source$
|
||||||
|
|
||||||
|
2003-01-28 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
|
* sql.php3, tbl_replace.php3: display UPDATE statement after row edit
|
||||||
|
|
||||||
2003-01-27 Marc Delisle <lem9@users.sourceforge.net>
|
2003-01-27 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* lang/slovenian update: thanks to Kositer Uros (urosh)
|
* lang/slovenian update: thanks to Kositer Uros (urosh)
|
||||||
* lang/albanian: update, thanks to Laurent Dhima
|
* lang/albanian: update, thanks to Laurent Dhima
|
||||||
|
12
sql.php3
12
sql.php3
@@ -498,6 +498,18 @@ else {
|
|||||||
}
|
}
|
||||||
$fields_cnt = count($fields_meta);
|
$fields_cnt = count($fields_meta);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Display previous update query (from tbl_replace)
|
||||||
|
if (isset($disp_query) && $cfg['ShowSQL'] == TRUE) {
|
||||||
|
$tmp_sql_query = $GLOBALS['sql_query'];
|
||||||
|
$tmp_sql_limit_to_append = $GLOBALS['sql_limit_to_append'];
|
||||||
|
$GLOBALS['sql_query'] = stripslashes($disp_query);
|
||||||
|
$GLOBALS['sql_limit_to_append'] = '';
|
||||||
|
PMA_showMessage($disp_message);
|
||||||
|
$GLOBALS['sql_query'] = $tmp_sql_query;
|
||||||
|
$GLOBALS['sql_limit_to_append'] = $tmp_sql_limit_to_append;
|
||||||
|
}
|
||||||
|
|
||||||
// Displays the results in a table
|
// Displays the results in a table
|
||||||
include('./libraries/display_tbl.lib.php3');
|
include('./libraries/display_tbl.lib.php3');
|
||||||
if (empty($disp_mode)) {
|
if (empty($disp_mode)) {
|
||||||
|
@@ -296,8 +296,10 @@ if (!$result) {
|
|||||||
include('./header.inc.php3');
|
include('./header.inc.php3');
|
||||||
include('./' . ereg_replace('\.\.*', '.', $goto));
|
include('./' . ereg_replace('\.\.*', '.', $goto));
|
||||||
} else {
|
} else {
|
||||||
$add_query = (strpos(' ' . $goto, 'tbl_change') ? '&disp_query=' . urlencode($sql_query) : '');
|
// I don't understand this one:
|
||||||
header('Location: ' . $cfg['PmaAbsoluteUri'] . $goto . '&message=' . urlencode($message) . $add_query);
|
//$add_query = (strpos(' ' . $goto, 'tbl_change') ? '&disp_query=' . urlencode($sql_query) : '');
|
||||||
|
$add_query = '&disp_query=' . urlencode($sql_query);
|
||||||
|
header('Location: ' . $cfg['PmaAbsoluteUri'] . $goto . '&disp_message=' . urlencode($message) . $add_query);
|
||||||
}
|
}
|
||||||
exit();
|
exit();
|
||||||
} // end if
|
} // end if
|
||||||
|
Reference in New Issue
Block a user