Show insert_id after INSERT (RFE #737660).

This commit is contained in:
Michal Čihař
2003-05-14 16:57:29 +00:00
parent f736050896
commit 56f2f747ab
95 changed files with 103 additions and 0 deletions

View File

@@ -183,11 +183,16 @@ if (!$result) {
} else {
$message = $strModifications;
}
$insert_id = mysql_insert_id();
if ($insert_id != 0) {
$message .= '<br />'.$strInsertedRowId . '&nbsp;' . $insert_id;
}
if ($is_gotofile) {
if ($goto == 'db_details.php3' && !empty($table)) {
unset($table);
}
$js_to_run = 'functions.js';
$active_page = $goto;
include('./header.inc.php3');
include('./' . ereg_replace('\.\.*', '.', $goto));
} else {