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

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

?? mysqlc.php

?? 太煩了
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
<?php/* vim: set expandtab tabstop=4 shiftwidth=4 foldmethod=marker: */// +----------------------------------------------------------------------+// | PHP Version 4                                                        |// +----------------------------------------------------------------------+// | Copyright (c) 1997-2004 The PHP Group                                |// +----------------------------------------------------------------------+// | This source file is subject to version 2.02 of the PHP license,      |// | that is bundled with this package in the file LICENSE, and is        |// | available at through the world-wide-web at                           |// | http://www.php.net/license/2_02.txt.                                 |// | If you did not receive a copy of the PHP license and are unable to   |// | obtain it through the world-wide-web, please send a note to          |// | license@php.net so we can mail you a copy immediately.               |// +----------------------------------------------------------------------+// | Author: Stig Bakken <ssb@php.net>                                    |// | Maintainer: Daniel Convissor <danielc@php.net>                       |// +----------------------------------------------------------------------+//// $Id: mysqlc.php,v 1.2 2005/07/22 05:10:13 max Exp $//// THis is modified and extended to have following functions check for the//  cached files first.//  getRow//  getCol//  getAll//  getAssociated//  getOne// THis cache mechanism is using Delayed Connection Mechanism//// XXX legend://// XXX ERRORMSG: The error message from the mysql function should//               be registered here.//// TODO/wishlist:// longReadlen// binmoderequire_once PEAR_DIR . 'DB/common.php';/** * Database independent query interface definition for PHP's MySQL * extension. * * This is for MySQL versions 4.0 and below. * * @package  DB * @version  $Id: mysql.php,v 1.2 2005/07/22 05:10:13 max Exp $ * @category Database * @author   Stig Bakken <ssb@php.net> */class DB_mysqlc extends DB_common{    // {{{ properties    var $connection;    var $phptype, $dbsyntax;    var $prepare_tokens = array();    var $prepare_types = array();    var $num_rows = array();    var $transaction_opcount = 0;    var $autocommit = true;    var $fetchmode = DB_FETCHMODE_ORDERED; /* Default fetch mode */    var $_db = false;	var $cached_tables = array();	var $dsn = array();	var $_dsninfo = array();	var $_dboptions = array();	var $_connected;    // }}}    // {{{ constructor    /**     * DB_mysql constructor.     *     * @access public     */    function DB_mysqlc()    {        $this->DB_common();        $this->dbsyntax = 'mysql';        $this->features = array(            'prepare' => false,            'pconnect' => true,            'transactions' => true,            'limit' => 'alter'        );        $this->errorcode_map = array(            1004 => DB_ERROR_CANNOT_CREATE,            1005 => DB_ERROR_CANNOT_CREATE,            1006 => DB_ERROR_CANNOT_CREATE,            1007 => DB_ERROR_ALREADY_EXISTS,            1008 => DB_ERROR_CANNOT_DROP,            1022 => DB_ERROR_ALREADY_EXISTS,            1046 => DB_ERROR_NODBSELECTED,            1050 => DB_ERROR_ALREADY_EXISTS,            1051 => DB_ERROR_NOSUCHTABLE,            1054 => DB_ERROR_NOSUCHFIELD,            1062 => DB_ERROR_ALREADY_EXISTS,            1064 => DB_ERROR_SYNTAX,            1100 => DB_ERROR_NOT_LOCKED,            1136 => DB_ERROR_VALUE_COUNT_ON_ROW,            1146 => DB_ERROR_NOSUCHTABLE,            1048 => DB_ERROR_CONSTRAINT,            1216 => DB_ERROR_CONSTRAINT        );    }    // }}}    // {{{ connect()    /**     * Connect to a database and log in as the specified user.     *     * @param $dsn the data source name (see DB::parseDSN for syntax)     * @param $persistent (optional) whether the connection should     *        be persistent     * @access public     * @return int DB_OK on success, a DB error on failure     *///    function connect($dsninfo, $persistent = false)    function connect()    {        if (!DB::assertExtension('mysql')) {            return $this->raiseError(DB_ERROR_EXTENSION_NOT_FOUND);        }//        if ($dsninfo['phptype'] == 'mysqlc') $dsninfo['phptype'] = 'mysql';        $this->dsn = $dsninfo = $this->_dsninfo;        if ($dsninfo['protocol'] && $dsninfo['protocol'] == 'unix') {            $dbhost = ':' . $dsninfo['socket'];        } else {            $dbhost = $dsninfo['hostspec'] ? $dsninfo['hostspec'] : 'localhost';            if ($dsninfo['port']) {                $dbhost .= ':' . $dsninfo['port'];            }        }        $connect_function = $persistent ? 'mysql_pconnect' : 'mysql_connect';        if ($dbhost && $dsninfo['username'] && isset($dsninfo['password'])) {            $conn = @$connect_function($dbhost, $dsninfo['username'],                                       $dsninfo['password']);        } elseif ($dbhost && $dsninfo['username']) {            $conn = @$connect_function($dbhost, $dsninfo['username']);        } elseif ($dbhost) {            $conn = @$connect_function($dbhost);        } else {            $conn = false;        }        if (!$conn) {            if (($err = @mysql_error()) != '') {                return $this->raiseError(DB_ERROR_CONNECT_FAILED, null, null,                                         null, $err);            } elseif (empty($php_errormsg)) {                return $this->raiseError(DB_ERROR_CONNECT_FAILED);            } else {                return $this->raiseError(DB_ERROR_CONNECT_FAILED, null, null,                                         null, $php_errormsg);            }        }        if ($dsninfo['database']) {            if (!@mysql_select_db($dsninfo['database'], $conn)) {               switch(mysql_errno($conn)) {                        case 1049:                            return $this->raiseError(DB_ERROR_NOSUCHDB, null, null,                                                     null, @mysql_error($conn));                        case 1044:                             return $this->raiseError(DB_ERROR_ACCESS_VIOLATION, null, null,                                                      null, @mysql_error($conn));                        default:                            return $this->raiseError(DB_ERROR, null, null,                                                     null, @mysql_error($conn));                    }            }            // fix to allow calls to different databases in the same script            $this->_db = $dsninfo['database'];        }        $this->connection = $conn;        return DB_OK;    }    // }}}    // {{{ disconnect()    /**     * Log out and disconnect from the database.     *     * @access public     *     * @return bool true on success, false if not connected.     */    function disconnect()    {		if ($this->_connected) {	        $ret = @mysql_close($this->connection);	        $this->connection = null;	        return $ret;		}    }    // }}}    // {{{ simpleQuery()    /**     * Send a query to MySQL and return the results as a MySQL resource     * identifier.     *     * @param the SQL query     *     * @access public     *     * @return mixed returns a valid MySQL result for successful SELECT     * queries, DB_OK for other successful queries.  A DB error is     * returned on failure.     */    function simpleQuery($query)    {        $ismanip = DB::isManip($query);        $this->last_query = $query;        $query = $this->modifyQuery($query);		$this->dbconnect();        if ($this->_db) {            if (!@mysql_select_db($this->_db, $this->connection)) {                return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED);            }        }        if (!$this->autocommit && $ismanip) {            if ($this->transaction_opcount == 0) {                $result = @mysql_query('SET AUTOCOMMIT=0', $this->connection);                $result = @mysql_query('BEGIN', $this->connection);                if (!$result) {                    return $this->mysqlRaiseError();                }            }            $this->transaction_opcount++;        }        $result = @mysql_query($query, $this->connection);        if (!$result) {            return $this->mysqlRaiseError();        }        if (is_resource($result)) {            $numrows = $this->numrows($result);            if (is_object($numrows)) {                return $numrows;            }            $this->num_rows[(int)$result] = $numrows;            return $result;        }        return DB_OK;    }    // }}}    // {{{ nextResult()    /**     * Move the internal mysql result pointer to the next available result     *     * This method has not been implemented yet.     *     * @param a valid sql result resource     *     * @access public     *     * @return false     */    function nextResult($result)    {        return false;    }    // }}}    // {{{ fetchInto()    /**     * Fetch a row and insert the data into an existing array.     *     * Formating of the array and the data therein are configurable.     * See DB_result::fetchInto() for more information.     *     * @param resource $result    query result identifier     * @param array    $arr       (reference) array where data from the row     *                            should be placed     * @param int      $fetchmode how the resulting array should be indexed     * @param int      $rownum    the row number to fetch     *     * @return mixed DB_OK on success, null when end of result set is     *               reached or on failure     *     * @see DB_result::fetchInto()     * @access private     */    function fetchInto($result, &$arr, $fetchmode, $rownum=null)    {        if ($rownum !== null) {            if (!@mysql_data_seek($result, $rownum)) {                return null;            }        }        if ($fetchmode & DB_FETCHMODE_ASSOC) {            $arr = @mysql_fetch_array($result, MYSQL_ASSOC);            if ($this->options['portability'] & DB_PORTABILITY_LOWERCASE && $arr) {                $arr = array_change_key_case($arr, CASE_LOWER);            }        } else {            $arr = @mysql_fetch_row($result);        }        if (!$arr) {            // See: http://bugs.php.net/bug.php?id=22328            // for why we can't check errors on fetching            return null;            /*            $errno = @mysql_errno($this->connection);            if (!$errno) {                return null;            }            return $this->mysqlRaiseError($errno);            */        }        if ($this->options['portability'] & DB_PORTABILITY_RTRIM) {            /*             * Even though this DBMS already trims output, we do this because             * a field might have intentional whitespace at the end that             * gets removed by DB_PORTABILITY_RTRIM under another driver.             */            $this->_rtrimArrayValues($arr);        }        if ($this->options['portability'] & DB_PORTABILITY_NULL_TO_EMPTY) {            $this->_convertNullArrayValuesToEmpty($arr);        }        return DB_OK;    }    // }}}    // {{{ freeResult()    /**     * Free the internal resources associated with $result.     *     * @param $result MySQL result identifier     *     * @access public     *     * @return bool true on success, false if $result is invalid     */    function freeResult($result)    {        unset($this->num_rows[(int)$result]);        return @mysql_free_result($result);    }    // }}}    // {{{ numCols()    /**     * Get the number of columns in a result set.     *     * @param $result MySQL result identifier     *     * @access public     *     * @return int the number of columns per row in $result     */    function numCols($result)    {        $cols = @mysql_num_fields($result);        if (!$cols) {            return $this->mysqlRaiseError();        }        return $cols;    }    // }}}    // {{{ numRows()    /**     * Get the number of rows in a result set.     *     * @param $result MySQL result identifier     *     * @access public     *     * @return int the number of rows in $result     */    function numRows($result)    {        $rows = @mysql_num_rows($result);        if ($rows === null) {            return $this->mysqlRaiseError();        }        return $rows;    }    // }}}    // {{{ autoCommit()    /**     * Enable/disable automatic commits     */    function autoCommit($onoff = false)    {        // XXX if $this->transaction_opcount > 0, we should probably        // issue a warning here.        $this->autocommit = $onoff ? true : false;        return DB_OK;    }    // }}}    // {{{ commit()    /**     * Commit the current transaction.     */    function commit()    {        if ($this->transaction_opcount > 0) {            if ($this->_db) {                if (!@mysql_select_db($this->_db, $this->connection)) {                    return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED);                }            }            $result = @mysql_query('COMMIT', $this->connection);            $result = @mysql_query('SET AUTOCOMMIT=1', $this->connection);            $this->transaction_opcount = 0;            if (!$result) {                return $this->mysqlRaiseError();            }        }        return DB_OK;    }    // }}}    // {{{ rollback()    /**     * Roll back (undo) the current transaction.     */    function rollback()    {        if ($this->transaction_opcount > 0) {            if ($this->_db) {                if (!@mysql_select_db($this->_db, $this->connection)) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
精品国产乱码久久久久久影片| 亚洲成人一区在线| 自拍偷拍亚洲综合| 日韩国产欧美视频| 成人99免费视频| 日韩一区二区在线观看视频 | 国产一区二区三区在线观看免费| 99久久精品情趣| 精品国产乱码久久久久久影片| 亚洲午夜久久久久久久久久久| 成人午夜电影小说| 欧美一区二区三区婷婷月色| 亚洲欧美色综合| 国产aⅴ综合色| 精品国产乱码久久久久久蜜臀| 亚洲高清久久久| 欧美精品少妇一区二区三区| 伊人开心综合网| av欧美精品.com| 欧美激情资源网| 国内精品伊人久久久久av影院 | 日韩av一区二区三区| 色婷婷av一区二区三区gif| 亚洲国产高清aⅴ视频| 极品少妇xxxx精品少妇| 欧美一区三区二区| 亚洲第一电影网| 日本韩国一区二区三区| 亚洲男同1069视频| www.亚洲人| 亚洲欧美另类图片小说| 不卡视频一二三四| 国产精品视频在线看| 成人精品鲁一区一区二区| 久久视频一区二区| 国产精华液一区二区三区| 精品美女一区二区| 国产高清不卡一区| 国产欧美日韩在线看| 欧美精品自拍偷拍| 亚洲成人动漫一区| 欧美日韩不卡一区二区| 首页国产欧美久久| 日韩三级电影网址| 久草这里只有精品视频| 国产欧美日韩精品一区| 成+人+亚洲+综合天堂| 亚洲精品乱码久久久久| 欧美三级电影一区| 日精品一区二区三区| 日韩精品一区二区在线观看| 国产美女一区二区三区| 国产精品毛片大码女人| 91久久精品一区二区三| 日韩精品国产精品| 久久亚洲精品国产精品紫薇| 国产99一区视频免费| 亚洲一区在线观看视频| 欧美va在线播放| 国产 日韩 欧美大片| 亚洲一二三四在线观看| 日韩久久精品一区| 99久久免费国产| 日韩电影一区二区三区四区| 久久人人超碰精品| 91老司机福利 在线| 免费精品视频在线| 中文字幕亚洲精品在线观看 | 亚洲五码中文字幕| 欧美成人a∨高清免费观看| 粉嫩aⅴ一区二区三区四区 | 伊人夜夜躁av伊人久久| 日韩欧美国产三级电影视频| 成人av先锋影音| 天天色综合天天| 国产日产亚洲精品系列| 欧美色精品天天在线观看视频| 极品少妇xxxx精品少妇| 亚洲国产三级在线| 国产精品乱码妇女bbbb| 91精品欧美一区二区三区综合在 | 亚洲女同女同女同女同女同69| 67194成人在线观看| 菠萝蜜视频在线观看一区| 日本大胆欧美人术艺术动态 | 国产亚洲午夜高清国产拍精品| 色婷婷一区二区三区四区| 精品系列免费在线观看| 亚洲国产日韩一级| 国产精品看片你懂得| 欧美精品一区二区三区在线播放| 欧美日韩国产精品成人| 色综合色狠狠综合色| 国产一区二区三区观看| 青青草成人在线观看| 亚洲成人av福利| 最新国产の精品合集bt伙计| 中文字幕av一区二区三区| 日韩精品一区二区三区中文不卡 | 91论坛在线播放| 国产精品77777| 九九九精品视频| 日韩av一区二区三区四区| 亚洲va欧美va天堂v国产综合| 综合久久久久久| 国产精品免费视频一区| 国产午夜精品理论片a级大结局| 欧美成人官网二区| 日韩欧美亚洲一区二区| 欧美一区中文字幕| 欧美一卡在线观看| 欧美精品久久天天躁| 欧美色视频在线| 91精品国产综合久久精品图片| 欧美日韩精品电影| 欧美日韩精品久久久| 6080午夜不卡| 日韩美女主播在线视频一区二区三区 | 欧美日韩在线三区| 91精彩视频在线观看| 色婷婷精品大视频在线蜜桃视频| 91蜜桃传媒精品久久久一区二区| 91视频免费看| 欧美色爱综合网| 91精品国产丝袜白色高跟鞋| 欧美美女喷水视频| 欧美一区二区美女| 91精品国产aⅴ一区二区| 欧美一区二区三区四区久久 | 欧美一级片在线看| 欧美一级片免费看| 亚洲精品一区二区三区香蕉| 国产日韩av一区| 亚洲免费观看高清完整版在线| 亚洲综合激情另类小说区| 亚洲国产视频在线| 色婷婷国产精品| 欧美视频一区二区三区四区| 3d动漫精品啪啪1区2区免费| 精品久久久久久无| 国产精品麻豆99久久久久久| 亚洲自拍偷拍麻豆| 日韩 欧美一区二区三区| 国产资源在线一区| 不卡av在线网| 91精品国产一区二区人妖| 日韩欧美亚洲一区二区| 国产精品色哟哟网站| 亚洲6080在线| 国产成a人亚洲| 欧美人与禽zozo性伦| 久久综合九色综合97婷婷| 国产精品美女久久久久aⅴ | 亚洲人成精品久久久久| 天天影视色香欲综合网老头| 国产成人av一区| 欧美日韩电影一区| 欧美激情在线一区二区三区| 亚洲地区一二三色| 国产91露脸合集magnet | 2014亚洲片线观看视频免费| 最新不卡av在线| 国产一区高清在线| 日本久久精品电影| 欧美精品一区二区三区很污很色的 | 久久丁香综合五月国产三级网站| av亚洲产国偷v产偷v自拍| 日韩欧美亚洲另类制服综合在线| 国产精品久久久久久久久晋中| 日韩电影在线观看网站| 99热国产精品| 久久综合av免费| 偷拍亚洲欧洲综合| www.亚洲在线| 国产精品青草综合久久久久99| 免费成人在线视频观看| 91行情网站电视在线观看高清版| 国产亚洲一二三区| 麻豆精品在线看| 欧美伦理电影网| 亚洲综合丁香婷婷六月香| 成人黄色在线看| 欧美激情一区在线观看| 激情综合色丁香一区二区| 欧美日韩国产一区| 亚洲特级片在线| 丁香桃色午夜亚洲一区二区三区| 日韩一级在线观看| 午夜精品福利一区二区三区av | 色综合夜色一区| 欧美激情一区二区三区四区| 韩国成人精品a∨在线观看| 日韩欧美中文字幕公布| 日韩经典一区二区| 欧美在线观看18| 亚洲综合自拍偷拍| 93久久精品日日躁夜夜躁欧美| 中文字幕一区二| 色综合久久久久综合体| 亚洲欧美日韩久久|