$s_confirmations['row'][$s_delete_idx] = array('msg' => sprintf($MESSAGES['CONFIRM_ROW_DELETE'], $s_wt['table'], $where), 'sql' => $sql);
    } else {
        fbird_query($dbhandle, $sql) or $ib_error = fbird_errmsg();
        // cleanup the watchtable output buffer
        $s_watch_buffer = '';
    }
}
// cleanup the watchtable output buffer
if (isset($_GET['go']) || isset($_GET['order'])) {
    $s_watch_buffer = '';
    $s_cust['wt'][$s_login['database']] = array('table' => $s_wt['table'], 'start' => $s_wt['start'], 'order' => $s_wt['order'], 'dir' => $s_wt['direction']);
    set_customize_cookie($s_cust);
}
globalize_session_vars();
if (!empty($dbhandle)) {
    fbird_close($dbhandle);
}
header('Location: ' . url_session($s_referer));
exit;
//
// return the initial field values when editing a dataset
//
function init_edit_values($edit_where, $fields)
{
    $values = array();
    $quote = identifier_quote($GLOBALS['s_login']['dialect']);
    $sql = 'SELECT * FROM ' . $quote . $edit_where['table'] . $quote . ' ' . $edit_where['where'];
    $res = fbird_query($GLOBALS['dbhandle'], $sql) or ib_error();
    if ($row = fbird_fetch_assoc($res, IBASE_TEXT)) {
        fbird_free_result($res);
        foreach ($fields as $field) {
 function _close()
 {
     if (!$this->autoCommit) {
         @fbird_rollback($this->_connectionID);
     }
     return @fbird_close($this->_connectionID);
 }
function drop_database($db, $login)
{
    $success = '';
    // make a connection to the selected database
    // or use the global dbhandle if it is the one firebirdwebadmin is currently connected to
    if ($db['database'] == $login['database'] && $db['host'] == $login['host']) {
        $dbh = $GLOBALS['dbhandle'];
    } else {
        $db_path = $db['host'] == '' ? $db['database'] : $db['host'] . ':' . $db['database'];
        if (($dbh = fbird_connect($db_path, $db['user'], $db['password'])) == FALSE) {
            $success = fbird_errmsg();
        }
    }
    // drop it if we got a handle
    if (is_resource($dbh) && fbird_drop_db($dbh) == FALSE) {
        $success = fbird_errmsg();
        fbird_close($dbh);
    }
    return $success;
}