Fixed Olivier's improvement for mutiple queries

This commit is contained in:
Loïc Chapeaux
2001-08-19 14:13:40 +00:00
parent db21ee9a84
commit 3fa64ba598

View File

@@ -70,6 +70,9 @@ if (!empty($prev_sql_query)) {
}
}
// Copy the query, used for display purposes only
$sql_query_cpy = $sql_query;
/**
* Executes the query
@@ -117,9 +120,6 @@ if ($sql_query != '') {
} // end if
// be nice with bandwidth...
$sql_query = "";
/**
* Go back to the calling script
*/
@@ -127,8 +127,14 @@ require('./header.inc.php3');
if (isset($my_die)) {
mysql_die('', $my_die);
}
$message = "$strSuccess: $strTheContent ($pieces_count $strInstructions)  ";
// Be nice with bandwidth...
if ($sql_file != 'none' && $pieces_count > 10) {
$sql_query = '';
unset($sql_query_cpy);
$message = "$strSuccess&nbsp:<br />$strTheContent ($pieces_count $strInstructions)&nbsp;";
} else {
$message = $strSuccess;
}
if (!isset($goto)
|| ($goto != 'db_details.php3' && $goto != 'tbl_properties.php3')) {
$goto = 'db_details.php3';