copyObject($name, $type, $new_name); // @@TODO: this can be improved, although it is only information $numQueries = $type == 'table' ? 2 : 1; if ($success) { Session::set('db', 'altered', true); createInfoGrid($db, '', $numQueries); } else createErrorGrid($db, $db->getLastQuery()); } ?>