Improved the error handling system

This commit is contained in:
Loïc Chapeaux
2001-08-22 20:42:51 +00:00
parent d455e66e42
commit c82e8c0bd9
12 changed files with 152 additions and 75 deletions

View File

@@ -17,9 +17,10 @@ if (isset($new_name) && trim($new_name) != '') {
$table = $new_name;
include('./header.inc.php3');
mysql_select_db($db);
$result = mysql_query('ALTER TABLE ' . backquote($old_name) . ' RENAME ' . backquote($new_name)) or mysql_die();
$message = sprintf($strRenameTableOK, $old_name, $table);
$reload = 'true';
$local_query = 'ALTER TABLE ' . backquote($old_name) . ' RENAME ' . backquote($new_name);
$result = mysql_query($local_query) or mysql_die('', $local_query);
$message = sprintf($strRenameTableOK, $old_name, $table);
$reload = 'true';
}