Improved the error handling system
This commit is contained in:
@@ -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';
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user