亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? odbc.php

?? FP2 CRM code+Mysql DB
?? PHP
?? 第 1 頁 / 共 2 頁
字號:
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: *//** * The PEAR DB driver for PHP's odbc extension * for interacting with databases via ODBC connections * * PHP versions 4 and 5 * * LICENSE: This source file is subject to version 3.0 of the PHP license * that is available through the world-wide-web at the following URI: * http://www.php.net/license/3_0.txt.  If you did not receive a copy of * the PHP License and are unable to obtain it through the web, please * send a note to license@php.net so we can mail you a copy immediately. * * @category   Database * @package    DB * @author     Stig Bakken <ssb@php.net> * @author     Daniel Convissor <danielc@php.net> * @copyright  1997-2005 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 * @version    CVS: $Id: odbc.php,v 1.78 2005/02/28 01:42:17 danielc Exp $ * @link       http://pear.php.net/package/DB *//** * Obtain the DB_common class so it can be extended from */require_once 'DB/common.php';/** * The methods PEAR DB uses to interact with PHP's odbc extension * for interacting with databases via ODBC connections * * These methods overload the ones declared in DB_common. * * More info on ODBC errors could be found here: * http://msdn.microsoft.com/library/default.asp?url=/library/en-us/trblsql/tr_err_odbc_5stz.asp * * @category   Database * @package    DB * @author     Stig Bakken <ssb@php.net> * @author     Daniel Convissor <danielc@php.net> * @copyright  1997-2005 The PHP Group * @license    http://www.php.net/license/3_0.txt  PHP License 3.0 * @version    Release: 1.7.6 * @link       http://pear.php.net/package/DB */class DB_odbc extends DB_common{    // {{{ properties    /**     * The DB driver type (mysql, oci8, odbc, etc.)     * @var string     */    var $phptype = 'odbc';    /**     * The database syntax variant to be used (db2, access, etc.), if any     * @var string     */    var $dbsyntax = 'sql92';    /**     * The capabilities of this DB implementation     *     * The 'new_link' element contains the PHP version that first provided     * new_link support for this DBMS.  Contains false if it's unsupported.     *     * Meaning of the 'limit' element:     *   + 'emulate' = emulate with fetch row by number     *   + 'alter'   = alter the query     *   + false     = skip rows     *     * NOTE: The feature set of the following drivers are different than     * the default:     *   + solid: 'transactions' = true     *   + navision: 'limit' = false     *     * @var array     */    var $features = array(        'limit'         => 'emulate',        'new_link'      => false,        'numrows'       => true,        'pconnect'      => true,        'prepare'       => false,        'ssl'           => false,        'transactions'  => false,    );    /**     * A mapping of native error codes to DB error codes     * @var array     */    var $errorcode_map = array(        '01004' => DB_ERROR_TRUNCATED,        '07001' => DB_ERROR_MISMATCH,        '21S01' => DB_ERROR_VALUE_COUNT_ON_ROW,        '21S02' => DB_ERROR_MISMATCH,        '22001' => DB_ERROR_INVALID,        '22003' => DB_ERROR_INVALID_NUMBER,        '22005' => DB_ERROR_INVALID_NUMBER,        '22008' => DB_ERROR_INVALID_DATE,        '22012' => DB_ERROR_DIVZERO,        '23000' => DB_ERROR_CONSTRAINT,        '23502' => DB_ERROR_CONSTRAINT_NOT_NULL,        '23503' => DB_ERROR_CONSTRAINT,        '23504' => DB_ERROR_CONSTRAINT,        '23505' => DB_ERROR_CONSTRAINT,        '24000' => DB_ERROR_INVALID,        '34000' => DB_ERROR_INVALID,        '37000' => DB_ERROR_SYNTAX,        '42000' => DB_ERROR_SYNTAX,        '42601' => DB_ERROR_SYNTAX,        'IM001' => DB_ERROR_UNSUPPORTED,        'S0000' => DB_ERROR_NOSUCHTABLE,        'S0001' => DB_ERROR_ALREADY_EXISTS,        'S0002' => DB_ERROR_NOSUCHTABLE,        'S0011' => DB_ERROR_ALREADY_EXISTS,        'S0012' => DB_ERROR_NOT_FOUND,        'S0021' => DB_ERROR_ALREADY_EXISTS,        'S0022' => DB_ERROR_NOSUCHFIELD,        'S1009' => DB_ERROR_INVALID,        'S1090' => DB_ERROR_INVALID,        'S1C00' => DB_ERROR_NOT_CAPABLE,    );    /**     * The raw database connection created by PHP     * @var resource     */    var $connection;    /**     * The DSN information for connecting to a database     * @var array     */    var $dsn = array();    /**     * The number of rows affected by a data manipulation query     * @var integer     * @access private     */    var $affected = 0;    // }}}    // {{{ constructor    /**     * This constructor calls <kbd>$this->DB_common()</kbd>     *     * @return void     */    function DB_odbc()    {        $this->DB_common();    }    // }}}    // {{{ connect()    /**     * Connect to the database server, log in and open the database     *     * Don't call this method directly.  Use DB::connect() instead.     *     * PEAR DB's odbc driver supports the following extra DSN options:     *   + cursor  The type of cursor to be used for this connection.     *     * @param array $dsn         the data source name     * @param bool  $persistent  should the connection be persistent?     *     * @return int  DB_OK on success. A DB_Error object on failure.     */    function connect($dsn, $persistent = false)    {        if (!PEAR::loadExtension('odbc')) {            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);        }        $this->dsn = $dsn;        if ($dsn['dbsyntax']) {            $this->dbsyntax = $dsn['dbsyntax'];        }        switch ($this->dbsyntax) {            case 'access':            case 'db2':            case 'solid':                $this->features['transactions'] = true;                break;            case 'navision':                $this->features['limit'] = false;        }        /*         * This is hear for backwards compatibility. Should have been using         * 'database' all along, but prior to 1.6.0RC3 'hostspec' was used.         */        if ($dsn['database']) {            $odbcdsn = $dsn['database'];        } elseif ($dsn['hostspec']) {            $odbcdsn = $dsn['hostspec'];        } else {            $odbcdsn = 'localhost';        }        $connect_function = $persistent ? 'odbc_pconnect' : 'odbc_connect';        if (empty($dsn['cursor'])) {            $this->connection = @$connect_function($odbcdsn, $dsn['username'],                                                   $dsn['password']);        } else {            $this->connection = @$connect_function($odbcdsn, $dsn['username'],                                                   $dsn['password'],                                                   $dsn['cursor']);        }        if (!is_resource($this->connection)) {            return $this->raiseError(DB_ERROR_CONNECT_FAILED,                                     null, null, null,                                     $this->errorNative());        }        return DB_OK;    }    // }}}    // {{{ disconnect()    /**     * Disconnects from the database server     *     * @return bool  TRUE on success, FALSE on failure     */    function disconnect()    {        $err = @odbc_close($this->connection);        $this->connection = null;        return $err;    }    // }}}    // {{{ simpleQuery()    /**     * Sends a query to the database server     *     * @param string  the SQL query string     *     * @return mixed  + a PHP result resrouce for successful SELECT queries     *                + the DB_OK constant for other successful queries     *                + a DB_Error object on failure     */    function simpleQuery($query)    {        $this->last_query = $query;        $query = $this->modifyQuery($query);        $result = @odbc_exec($this->connection, $query);        if (!$result) {            return $this->odbcRaiseError(); // XXX ERRORMSG        }        // Determine which queries that should return data, and which        // should return an error code only.        if (DB::isManip($query)) {            $this->affected = $result; // For affectedRows()            return DB_OK;        }        $this->affected = 0;        return $result;    }    // }}}    // {{{ nextResult()    /**     * Move the internal odbc result pointer to the next available result     *     * @param a valid fbsql result resource     *     * @access public     *     * @return true if a result is available otherwise return false     */    function nextResult($result)    {        return @odbc_next_result($result);    }    // }}}    // {{{ fetchInto()    /**     * Places a row from the result set into the given array     *     * Formating of the array and the data therein are configurable.     * See DB_result::fetchInto() for more information.     *     * This method is not meant to be called directly.  Use     * DB_result::fetchInto() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result    the query result resource     * @param array    $arr       the referenced array to put the data in     * @param int      $fetchmode how the resulting array should be indexed     * @param int      $rownum    the row number to fetch (0 = first row)     *     * @return mixed  DB_OK on success, NULL when the end of a result set is     *                 reached or on failure     *     * @see DB_result::fetchInto()     */    function fetchInto($result, &$arr, $fetchmode, $rownum = null)    {        $arr = array();        if ($rownum !== null) {            $rownum++; // ODBC first row is 1            if (version_compare(phpversion(), '4.2.0', 'ge')) {                $cols = @odbc_fetch_into($result, $arr, $rownum);            } else {                $cols = @odbc_fetch_into($result, $rownum, $arr);            }        } else {            $cols = @odbc_fetch_into($result, $arr);        }        if (!$cols) {            return null;        }        if ($fetchmode !== DB_FETCHMODE_ORDERED) {            for ($i = 0; $i < count($arr); $i++) {                $colName = @odbc_field_name($result, $i+1);                $a[$colName] = $arr[$i];            }            if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE) {                $a = array_change_key_case($a, CASE_LOWER);            }            $arr = $a;        }        if ($this->options['portability'] & DB_PORTABILITY_RTRIM) {            $this->_rtrimArrayValues($arr);        }        if ($this->options['portability'] & DB_PORTABILITY_NULL_TO_EMPTY) {            $this->_convertNullArrayValuesToEmpty($arr);        }        return DB_OK;    }    // }}}    // {{{ freeResult()    /**     * Deletes the result set and frees the memory occupied by the result set     *     * This method is not meant to be called directly.  Use     * DB_result::free() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return bool  TRUE on success, FALSE if $result is invalid     *     * @see DB_result::free()     */    function freeResult($result)    {        return @odbc_free_result($result);    }    // }}}    // {{{ numCols()    /**     * Gets the number of columns in a result set     *     * This method is not meant to be called directly.  Use     * DB_result::numCols() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return int  the number of columns.  A DB_Error object on failure.     *     * @see DB_result::numCols()     */    function numCols($result)    {        $cols = @odbc_num_fields($result);        if (!$cols) {            return $this->odbcRaiseError();        }        return $cols;    }    // }}}    // {{{ affectedRows()    /**     * Determines the number of rows affected by a data maniuplation query     *     * 0 is returned for queries that don't manipulate data.     *     * @return int  the number of rows.  A DB_Error object on failure.     */    function affectedRows()    {        if (empty($this->affected)) {  // In case of SELECT stms            return 0;        }        $nrows = @odbc_num_rows($this->affected);        if ($nrows == -1) {            return $this->odbcRaiseError();        }        return $nrows;    }    // }}}    // {{{ numRows()    /**     * Gets the number of rows in a result set     *     * Not all ODBC drivers support this functionality.  If they don't     * a DB_Error object for DB_ERROR_UNSUPPORTED is returned.     *     * This method is not meant to be called directly.  Use     * DB_result::numRows() instead.  It can't be declared "protected"     * because DB_result is a separate object.     *     * @param resource $result  PHP's query result resource     *     * @return int  the number of rows.  A DB_Error object on failure.     *     * @see DB_result::numRows()     */    function numRows($result)    {        $nrows = @odbc_num_rows($result);        if ($nrows == -1) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲综合成人在线| 国产精品影视在线观看| 国产精品剧情在线亚洲| 国产美女视频一区| 美女免费视频一区| 国产精品毛片久久久久久| 97久久精品人人做人人爽50路| 欧美成人性福生活免费看| 亚洲一二三四久久| 亚洲中国最大av网站| 亚洲成人免费视| 日韩精品亚洲一区| 麻豆精品视频在线观看免费| 日韩激情一区二区| 午夜成人在线视频| 蜜臀精品一区二区三区在线观看 | 水蜜桃久久夜色精品一区的特点| 中文字幕中文在线不卡住| 国产欧美精品国产国产专区| 欧美成人性福生活免费看| 久久综合九色欧美综合狠狠 | 狠狠色狠狠色综合| 日本免费新一区视频| 午夜久久电影网| 午夜精品久久久久久久99水蜜桃| 日本怡春院一区二区| 日韩高清在线一区| 麻豆精品在线播放| 成人午夜电影久久影院| 91视频免费看| 5月丁香婷婷综合| 精品久久久久久久久久久久久久久| 91麻豆精品国产91| 日韩欧美一级精品久久| 国产午夜精品久久| 亚洲一区在线视频| 爽爽淫人综合网网站| 丁香亚洲综合激情啪啪综合| 国产99久久久国产精品免费看| 99国产精品99久久久久久| 精品污污网站免费看| 欧美一区二区三区小说| 18涩涩午夜精品.www| 久久国产精品露脸对白| 国产电影精品久久禁18| 欧美视频一区二区三区在线观看| 精品国产一区二区三区四区四| 欧美电影精品一区二区| 国产精品乱码一区二三区小蝌蚪| 亚洲国产你懂的| 99riav一区二区三区| 久久婷婷国产综合国色天香 | 日韩视频一区二区三区| 亚洲理论在线观看| 成人丝袜视频网| 日韩欧美国产小视频| 亚洲精品免费在线播放| 国产东北露脸精品视频| 在线综合+亚洲+欧美中文字幕| 日韩精品专区在线影院观看| 亚洲色图清纯唯美| 色综合视频在线观看| 日韩欧美亚洲一区二区| 香蕉久久一区二区不卡无毒影院 | 国产经典欧美精品| 日韩美女天天操| 欧美国产日韩a欧美在线观看 | 国产精品视频免费| 亚洲国产视频a| 国内精品伊人久久久久av一坑 | 日本一区二区免费在线| 亚洲高清久久久| 91视视频在线直接观看在线看网页在线看| 精品国产一区二区三区忘忧草 | 久久99精品国产麻豆婷婷| 制服丝袜亚洲播放| 日韩精彩视频在线观看| 精品视频资源站| 欧美精彩视频一区二区三区| 国产一区美女在线| 久久这里只有精品视频网| 九九九精品视频| 国产三级久久久| 国产成人精品1024| 国产精品久久久久永久免费观看| 成人一区二区三区视频在线观看| 国产欧美综合色| 国产不卡高清在线观看视频| 色综合激情久久| 日韩精品福利网| 一本色道久久综合亚洲aⅴ蜜桃| 精品成人私密视频| 日韩av电影免费观看高清完整版在线观看 | 日韩欧美精品在线| 久久精品国产在热久久| 亚洲免费大片在线观看| 成人动漫av在线| 午夜精品久久久久久久99水蜜桃| 日韩一区二区麻豆国产| 激情五月激情综合网| 中文字幕在线播放不卡一区| 亚洲精品视频在线观看网站| 日韩国产精品91| 8v天堂国产在线一区二区| 日韩av电影一区| 在线免费观看日韩欧美| 石原莉奈在线亚洲三区| 亚洲电影激情视频网站| 久久免费偷拍视频| 日本乱人伦aⅴ精品| 亚洲欧洲www| 日韩精品一区二区在线观看| 99久久久无码国产精品| 日日噜噜夜夜狠狠视频欧美人| 精品人伦一区二区色婷婷| av午夜一区麻豆| 国产在线一区二区| 亚洲一线二线三线视频| 久久久精品黄色| 欧美日韩精品一区二区天天拍小说| 国产一区二区影院| 亚洲妇女屁股眼交7| 国产午夜亚洲精品理论片色戒| 欧美日韩一级二级| 成人av在线播放网址| 亚洲免费在线视频一区 二区| 色婷婷综合五月| 国产91色综合久久免费分享| 一区二区三区四区在线免费观看 | 成人免费看黄yyy456| 精品福利在线导航| 欧美中文字幕一区二区三区| 国产成人精品三级麻豆| 日韩在线卡一卡二| 国产人伦精品一区二区| 欧美成人艳星乳罩| 欧美日韩aaaaaa| 欧美主播一区二区三区| 成人免费视频视频在线观看免费 | 午夜精品国产更新| 亚洲婷婷国产精品电影人久久| 久久色视频免费观看| 91精品麻豆日日躁夜夜躁| 不卡在线视频中文字幕| 国产精品亚洲成人| 国产美女精品在线| 久久99精品国产| 极品少妇xxxx精品少妇| 日本中文字幕一区二区视频| 亚州成人在线电影| 伊人一区二区三区| 一区二区三区在线观看视频| 亚洲精品免费在线观看| 亚洲精品国产a| 亚洲视频一二三| 一区二区三区精品| 亚洲精选免费视频| 亚洲午夜日本在线观看| 亚洲欧美日韩在线不卡| 亚洲免费观看高清完整版在线观看 | 国产精品动漫网站| 中文字幕免费不卡| 国产精品久久久久影视| 欧美激情在线一区二区| 国产精品久久久久久久午夜片| 国产精品成人网| 亚洲图片欧美激情| 亚洲成人在线观看视频| 天天操天天干天天综合网| 久久国产精品无码网站| 韩国欧美一区二区| 成人黄色网址在线观看| av电影在线观看完整版一区二区| 91麻豆免费在线观看| 91九色最新地址| 欧美一区二区播放| 国产日韩v精品一区二区| 中文字幕亚洲欧美在线不卡| 一区二区三区精品| 国产在线观看一区二区| 99视频一区二区| 欧美精品久久一区二区三区| 精品国产凹凸成av人网站| 国产精品久久久久久久久搜平片| 亚洲人成网站色在线观看| 日本女人一区二区三区| 国产精品77777| 欧美性受xxxx黑人xyx| 欧美一区二区三区免费在线看| 国产日韩精品一区二区三区| 亚洲自拍偷拍麻豆| 国产一区 二区| 欧美日韩精品一区二区三区蜜桃 | 亚洲精品菠萝久久久久久久| 日韩中文字幕麻豆| 91在线云播放| 26uuu色噜噜精品一区二区| 亚洲欧美日韩系列| 国产精品538一区二区在线| 色av成人天堂桃色av|