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

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

?? mysqlc.php

?? 太煩了
?? PHP
?? 第 1 頁 / 共 4 頁
字號:
                    $dsn = $this->dsn;                    $dsn['database'] = 'mysql';                    if (DB::isError($db = DB::connect($dsn))) {                        return $db;                    }                    $sql = $db->getCol($sql);                    $db->disconnect();                    // XXX Fixme the mysql driver should take care of this                    if (!@mysql_select_db($this->dsn['database'], $this->connection)) {                        return $this->mysqlRaiseError(DB_ERROR_NODBSELECTED);                    }                }                return $sql;            case 'databases':                return 'SHOW DATABASES';            default:                return null;        }    }    // }}}	/* Following functions are redefining of functions available in DB_common.	 * redefined here to enable caching mechanism	 * Vijay Nair	 */    // {{{ getOne()    /**     * Fetch the first column of the first row of data returned from     * a query     *     * Takes care of doing the query and freeing the results when finished.     *     * @param string $query  the SQL query     * @param mixed  $params array, string or numeric data to be used in     *                       execution of the statement.  Quantity of items     *                       passed must match quantity of placeholders in     *                       query:  meaning 1 placeholder for non-array     *                       parameters or 1 placeholder per array element.     *     * @return mixed  the returned value of the query.  DB_Error on failure.     *     * @access public     */    function &getOne($query, $params = array())    {        settype($params, 'array');		$qry = $this->prepareFullQuery($query, $params);		$cached_data = $this->checkCache($qry);		if ($cached_data ) {			$val = $cached_data;			if (is_array($val)) {				$val = $val[0];			}			return $val;		}        if (sizeof($params) > 0) {            $sth = $this->prepare($query);            if (DB::isError($sth)) {                return $sth;            }            $res =& $this->execute($sth, $params);            $this->freePrepared($sth);        } else {            $res =& $this->query($query);        }        if (DB::isError($res)) {            return $res;        }        $err = $res->fetchInto($row, DB_FETCHMODE_ORDERED);        $res->free();        if ($err !== DB_OK) {            return $err;        }		$val = $row[0];		if (is_array($val) ){			$val = array_values($val);		}		$this->saveCache($qry, $val);        return $val;    }    // }}}    // {{{ getRow()    /**     * Fetch the first row of data returned from a query     *     * Takes care of doing the query and freeing the results when finished.     *     * @param string $query  the SQL query     * @param array  $params array to be used in execution of the statement.     *                       Quantity of array elements must match quantity     *                       of placeholders in query.  This function does     *                       NOT support scalars.     * @param int    $fetchmode  the fetch mode to use     *     * @return array the first row of results as an array indexed from     *               0, or a DB error code.     *     * @access public     */    function &getRow($query,                     $params = array(),                     $fetchmode = DB_FETCHMODE_DEFAULT)    {        // compat check, the params and fetchmode parameters used to        // have the opposite order        settype($params, 'array');		$qry = $this->prepareFullQuery($query, $params);		$cached_data = $this->checkCache($qry);		if ($cached_data ) {			return $cached_data;		}        if (!is_array($params)) {            if (is_array($fetchmode)) {                if ($params === null) {                    $tmp = DB_FETCHMODE_DEFAULT;                } else {                    $tmp = $params;                }                $params = $fetchmode;                $fetchmode = $tmp;            } elseif ($params !== null) {                $fetchmode = $params;                $params = array();            }        }        if (sizeof($params) > 0) {            $sth = $this->prepare($query);            if (DB::isError($sth)) {                return $sth;            }            $res =& $this->execute($sth, $params);            $this->freePrepared($sth);        } else {            $res =& $this->query($query);        }        if (DB::isError($res)) {            return $res;        }        $err = $res->fetchInto($row, $fetchmode);        $res->free();        if ($err !== DB_OK) {            return $err;        }		$this->saveCache($qry, $row);        return $row;    }    // }}}    // {{{ getCol()    /**     * Fetch a single column from a result set and return it as an     * indexed array     *     * @param string $query  the SQL query     * @param mixed  $col    which column to return (integer [column number,     *                       starting at 0] or string [column name])     * @param mixed  $params array, string or numeric data to be used in     *                       execution of the statement.  Quantity of items     *                       passed must match quantity of placeholders in     *                       query:  meaning 1 placeholder for non-array     *                       parameters or 1 placeholder per array element.     *     * @return array  an indexed array with the data from the first     *                row at index 0, or a DB error code     *     * @see DB_common::query()     * @access public     */    function &getCol($query, $col = 0, $params = array())    {        settype($params, 'array');		$qry = $this->prepareFullQuery($query, $params);		$cached_data = $this->checkCache($qry);		if ($cached_data ) {			return $cached_data;		}        if (sizeof($params) > 0) {            $sth = $this->prepare($query);            if (DB::isError($sth)) {                return $sth;            }            $res =& $this->execute($sth, $params);            $this->freePrepared($sth);        } else {            $res =& $this->query($query);        }        if (DB::isError($res)) {            return $res;        }        $fetchmode = is_int($col) ? DB_FETCHMODE_ORDERED : DB_FETCHMODE_ASSOC;        $ret = array();        while (is_array($row = $res->fetchRow($fetchmode))) {            $ret[] = $row[$col];        }        $res->free();        if (DB::isError($row)) {            $ret = $row;        }		$this->saveCache($qry, $ret);        return $ret;    }    // }}}    // {{{ getAssoc()    /**     * Fetch the entire result set of a query and return it as an     * associative array using the first column as the key     *     * If the result set contains more than two columns, the value     * will be an array of the values from column 2-n.  If the result     * set contains only two columns, the returned value will be a     * scalar with the value of the second column (unless forced to an     * array with the $force_array parameter).  A DB error code is     * returned on errors.  If the result set contains fewer than two     * columns, a DB_ERROR_TRUNCATED error is returned.     *     * For example, if the table "mytable" contains:     *     * <pre>     *  ID      TEXT       DATE     * --------------------------------     *  1       'one'      944679408     *  2       'two'      944679408     *  3       'three'    944679408     * </pre>     *     * Then the call getAssoc('SELECT id,text FROM mytable') returns:     * <pre>     *   array(     *     '1' => 'one',     *     '2' => 'two',     *     '3' => 'three',     *   )     * </pre>     *     * ...while the call getAssoc('SELECT id,text,date FROM mytable') returns:     * <pre>     *   array(     *     '1' => array('one', '944679408'),     *     '2' => array('two', '944679408'),     *     '3' => array('three', '944679408')     *   )     * </pre>     *     * If the more than one row occurs with the same value in the     * first column, the last row overwrites all previous ones by     * default.  Use the $group parameter if you don't want to     * overwrite like this.  Example:     *     * <pre>     * getAssoc('SELECT category,id,name FROM mytable', false, null,     *          DB_FETCHMODE_ASSOC, true) returns:     *     *   array(     *     '1' => array(array('id' => '4', 'name' => 'number four'),     *                  array('id' => '6', 'name' => 'number six')     *            ),     *     '9' => array(array('id' => '4', 'name' => 'number four'),     *                  array('id' => '6', 'name' => 'number six')     *            )     *   )     * </pre>     *     * Keep in mind that database functions in PHP usually return string     * values for results regardless of the database's internal type.     *     * @param string  $query  the SQL query     * @param boolean $force_array  used only when the query returns     *                              exactly two columns.  If true, the values     *                              of the returned array will be one-element     *                              arrays instead of scalars.     * @param mixed   $params array, string or numeric data to be used in     *                        execution of the statement.  Quantity of items     *                        passed must match quantity of placeholders in     *                        query:  meaning 1 placeholder for non-array     *                        parameters or 1 placeholder per array element.     * @param boolean $group  if true, the values of the returned array     *                        is wrapped in another array.  If the same     *                        key value (in the first column) repeats     *                        itself, the values will be appended to     *                        this array instead of overwriting the     *                        existing values.     *     * @return array  associative array with results from the query.     *                DB Error on failure.     *     * @access public     */    function &getAssoc($query, $force_array = false, $params = array(),                       $fetchmode = DB_FETCHMODE_DEFAULT, $group = false)    {        settype($params, 'array');		$qry = $this->prepareFullQuery($query, $params);		$cached_data = $this->checkCache($qry);		if ($cached_data ) {			return $cached_data;		}        if (sizeof($params) > 0) {            $sth = $this->prepare($query);            if (DB::isError($sth)) {                return $sth;            }            $res =& $this->execute($sth, $params);            $this->freePrepared($sth);        } else {            $res =& $this->query($query);        }        if (DB::isError($res)) {            return $res;        }        if ($fetchmode == DB_FETCHMODE_DEFAULT) {            $fetchmode = $this->fetchmode;        }        $cols = $res->numCols();        if ($cols < 2) {            $tmp =& $this->raiseError(DB_ERROR_TRUNCATED);            return $tmp;        }        $results = array();        if ($cols > 2 || $force_array) {            // return array values            // XXX this part can be optimized            if ($fetchmode == DB_FETCHMODE_ASSOC) {                while (is_array($row = $res->fetchRow(DB_FETCHMODE_ASSOC))) {                    reset($row);                    $key = current($row);                    unset($row[key($row)]);                    if ($group) {                        $results[$key][] = $row;                    } else {                        $results[$key] = $row;                    }                }            } elseif ($fetchmode == DB_FETCHMODE_OBJECT) {                while ($row = $res->fetchRow(DB_FETCHMODE_OBJECT)) {                    $arr = get_object_vars($row);                    $key = current($arr);                    if ($group) {                        $results[$key][] = $row;                    } else {                        $results[$key] = $row;                    }                }            } else {                while (is_array($row = $res->fetchRow(DB_FETCHMODE_ORDERED))) {                    // we shift away the first element to get                    // indices running from 0 again                    $key = array_shift($row);                    if ($group) {                        $results[$key][] = $row;                    } else {                        $results[$key] = $row;                    }                }            }            if (DB::isError($row)) {                $results = $row;            }        } else {            // return scalar values            while (is_array($row = $res->fetchRow(DB_FETCHMODE_ORDERED))) {                if ($group) {                    $results[$row[0]][] = $row[1];                } else {                    $results[$row[0]] = $row[1];                }            }            if (DB::isError($row)) {                $results = $row;            }        }        $res->free();		$this->saveCache($qry, $results);        return $results;    }    // }}}    // {{{ getAll()    /**     * Fetch all the rows returned from a query     *     * @param string $query  the SQL query     * @param array  $params array to be used in execution of the statement.     *                       Quantity of array elements must match quantity     *                       of placeholders in query.  This function does     *                       NOT support scalars.     * @param int    $fetchmode  the fetch mode to use     *     * @return array  an nested array.  DB error on failure.     *     * @access public     */    function &getAll($query,                     $params = array(),                     $fetchmode = DB_FETCHMODE_DEFAULT)    {		$qry = $this->prepareFullQuery($query, $params);		$cached_data = $this->checkCache($qry);		if ($cached_data ) {			return $cached_data;		}        // compat check, the params and fetchmode parameters used to        // have the opposite order        if (!is_array($params)) {            if (is_array($fetchmode)) {                if ($params === null) {

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美精品一区二区三区在线播放 | 国产成人综合自拍| 日韩欧美一级特黄在线播放| 蜜臀av性久久久久蜜臀aⅴ四虎| 欧美一级欧美一级在线播放| 国产在线一区观看| 中文字幕免费一区| 一本久久a久久免费精品不卡| 一区二区三区欧美| 91精品国产入口| 国产精品资源在线看| 亚洲色图在线播放| 7777精品伊人久久久大香线蕉经典版下载| 美女脱光内衣内裤视频久久网站| 久久久亚洲国产美女国产盗摄| 大尺度一区二区| 亚洲综合视频在线| 久久综合资源网| 91麻豆免费视频| 日本中文在线一区| 国产精品美女久久久久久2018 | 国产成人在线网站| 天天做天天摸天天爽国产一区 | 欧美精品丝袜中出| 国产不卡视频在线播放| 亚洲视频一二三区| 91精品国产麻豆| 成人av电影观看| 男男成人高潮片免费网站| 欧美激情一区二区三区四区 | 欧美日韩国产不卡| 国产成人在线看| 亚洲一区二区三区国产| 国产欧美日韩在线视频| 欧美三级电影网站| 成人h动漫精品一区二区| 日韩电影在线一区| 伊人婷婷欧美激情| 国产日韩在线不卡| 91精品欧美一区二区三区综合在| a美女胸又www黄视频久久| 久久精品国产99国产精品| 亚洲精品中文在线影院| 久久久久久亚洲综合影院红桃| 欧美色图免费看| 99久久综合精品| 国产一区福利在线| 免费xxxx性欧美18vr| 夜夜嗨av一区二区三区| 国产精品无圣光一区二区| 欧美成va人片在线观看| 欧美日韩精品一区二区天天拍小说 | 午夜精品福利在线| 日韩美女视频一区| 欧美激情一区二区三区蜜桃视频 | 国产精品国产三级国产a| 精品国产一区二区三区不卡 | 欧美日韩国产综合一区二区| 91影院在线免费观看| 风间由美一区二区三区在线观看 | 99国产精品久久久久久久久久| 久久精品久久综合| 天天爽夜夜爽夜夜爽精品视频| 最新成人av在线| 国产精品久久久久天堂| 亚洲国产电影在线观看| 亚洲免费av高清| 国产精品美女久久久久久久久| 国产亚洲成aⅴ人片在线观看 | 久久精品亚洲精品国产欧美kt∨ | 久久久久久电影| 精品国产成人在线影院 | 中文无字幕一区二区三区| 久久综合久久鬼色| 欧美精品一区二区三区在线 | 成人午夜视频福利| 国产成人在线看| 福利一区福利二区| youjizz久久| 岛国av在线一区| 福利一区二区在线| 99久久99精品久久久久久| 成人综合婷婷国产精品久久蜜臀| 成人妖精视频yjsp地址| 成人av网站在线观看| 91蜜桃网址入口| 日本丰满少妇一区二区三区| 欧美吞精做爰啪啪高潮| 91精品国产综合久久精品图片| 7777精品伊人久久久大香线蕉完整版 | 亚洲成人激情社区| 亚洲国产wwwccc36天堂| 日韩国产精品大片| 老司机精品视频在线| 国产成人一区在线| 91视频.com| 色综合久久88色综合天天| 在线免费观看不卡av| 欧美人xxxx| 国产欧美日本一区视频| 一区二区三区丝袜| 亚洲成av人片在www色猫咪| 青草国产精品久久久久久| 国产高清精品久久久久| 日本韩国欧美在线| 日韩一区二区在线看| 亚洲一区二区三区四区五区中文| 五月天网站亚洲| 国产专区综合网| 色综合欧美在线视频区| 日韩丝袜情趣美女图片| 亚洲国产精品ⅴa在线观看| 亚洲一区二区三区美女| 国产精品自在欧美一区| 欧美色男人天堂| 久久综合九色综合97_久久久| 亚洲免费观看高清完整版在线 | 久久精品一区二区三区不卡 | 一区二区三区丝袜| 精品制服美女丁香| 一本久久a久久免费精品不卡| 日韩欧美中文字幕制服| 成人免费在线播放视频| 久久精品99国产国产精| 色婷婷综合中文久久一本| 久久这里只有精品首页| 亚洲国产va精品久久久不卡综合| 粉嫩嫩av羞羞动漫久久久| 欧美电影在线免费观看| 中文字幕亚洲区| 国产一区二区在线视频| 欧美日韩不卡一区| 亚洲婷婷综合久久一本伊一区| 狠狠色丁香九九婷婷综合五月| 欧美亚洲动漫另类| 中文字幕亚洲精品在线观看| 国产一区二区三区在线观看精品| 色狠狠桃花综合| 国产欧美日产一区| 精品一二三四区| 日韩一区二区精品葵司在线 | 欧美一区二区三区视频免费| 亚洲人成精品久久久久| 国产91精品精华液一区二区三区| 欧美日韩黄色一区二区| 亚洲视频网在线直播| 粉嫩aⅴ一区二区三区四区五区| 日韩久久久久久| 日韩电影免费一区| 欧美日韩在线免费视频| 亚洲精品成人a在线观看| jlzzjlzz亚洲女人18| 久久久久九九视频| 国产一区三区三区| 久久蜜臀精品av| 精品亚洲porn| 精品成人一区二区三区四区| 日韩高清国产一区在线| 3d动漫精品啪啪| 日韩电影在线看| 91精品国产色综合久久不卡电影| 亚洲成人高清在线| 欧美三级蜜桃2在线观看| 一区二区三区日韩精品视频| 一本一道久久a久久精品 | 视频一区免费在线观看| 在线精品观看国产| 午夜欧美电影在线观看| 欧美日韩免费视频| 日韩高清一区二区| 日韩欧美一区二区在线视频| 免费成人小视频| 久久久久国产精品人| 国产黄人亚洲片| 国产精品久久久久7777按摩| 99视频一区二区| 亚洲国产精品久久艾草纯爱| 欧美日韩大陆一区二区| 久久国产精品无码网站| 久久精品亚洲一区二区三区浴池| 丁香婷婷综合色啪| 亚洲最大成人综合| 欧美精品xxxxbbbb| 国产综合久久久久久鬼色| 欧美国产综合一区二区| 色94色欧美sute亚洲线路一ni | 亚洲精品国产无天堂网2021| 欧美综合视频在线观看| 日本aⅴ精品一区二区三区| 久久综合九色综合欧美就去吻| 成人福利在线看| 亚洲一级二级在线| 欧美成人乱码一区二区三区| 福利一区二区在线| 亚洲一区二区三区四区五区黄 | 国产精品高清亚洲| 欧美日韩国产乱码电影| 国产一区在线观看麻豆| 亚洲欧美日韩一区二区三区在线观看| 91电影在线观看|