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

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

?? common.php

?? PhpWiki是sourceforge的一個開源項目
?? PHP
?? 第 1 頁 / 共 5 頁
字號:
        }        $err = $res->fetchInto($row, DB_FETCHMODE_ORDERED);        $res->free();        if ($err !== DB_OK) {            return $err;        }        return $row[0];    }    // }}}    // {{{ 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        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;        }        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');        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;        }        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');        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();        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)    {        // compat check, the params and fetchmode parameters used to        // have the opposite order        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) || $res == DB_OK) {            return $res;        }        $results = array();        while (DB_OK === $res->fetchInto($row, $fetchmode)) {            if ($fetchmode & DB_FETCHMODE_FLIPPED) {                foreach ($row as $key => $val) {                    $results[$key][] = $val;                }            } else {                $results[] = $row;            }        }        $res->free();        if (DB::isError($row)) {            $tmp =& $this->raiseError($row);            return $tmp;        }        return $results;    }    // }}}    // {{{ autoCommit()    /**     * enable automatic Commit     *     * @param boolean $onoff     * @return mixed DB_Error     *     * @access public     */    function autoCommit($onoff=false)    {        return $this->raiseError(DB_ERROR_NOT_CAPABLE);    }    // }}}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩aaaaaa| 91在线免费视频观看| 日韩一区二区三区精品视频| 日本美女视频一区二区| 日韩一区二区三区电影| 国产精品99久久久久久久vr | 欧美精品777| 日韩电影在线观看网站| 精品国产一区二区三区四区四 | 成人免费的视频| 亚洲免费成人av| 91精品一区二区三区在线观看| 看电视剧不卡顿的网站| 欧美国产综合色视频| 欧美艳星brazzers| 日本免费新一区视频| 欧美国产日韩亚洲一区| 欧美性大战久久久久久久| 久草热8精品视频在线观看| 日本一区二区视频在线| 欧美日韩一卡二卡三卡| 国模大尺度一区二区三区| 国产精品入口麻豆九色| 欧美日韩精品系列| 国产麻豆一精品一av一免费| 中文字幕一区日韩精品欧美| 91麻豆精品国产91久久久久久久久 | 国产精品美女久久久久久久网站| 91在线小视频| 蜜桃在线一区二区三区| 亚洲色图在线视频| 精品日产卡一卡二卡麻豆| 色悠悠久久综合| 麻豆91在线观看| 亚洲综合视频在线观看| 久久午夜免费电影| 欧美自拍丝袜亚洲| 国产成人在线影院| 日本成人在线一区| 亚洲精品午夜久久久| 久久久精品综合| 欧美军同video69gay| proumb性欧美在线观看| 麻豆成人免费电影| 亚洲一区二区三区影院| 国产欧美视频一区二区三区| 欧美丰满少妇xxxxx高潮对白| k8久久久一区二区三区| 国产乱码一区二区三区| 视频一区中文字幕| 亚洲一区二区三区在线播放| 国产精品乱人伦| 国产色综合一区| 日韩欧美你懂的| 欧美色网站导航| 91丨九色丨尤物| 成人黄页毛片网站| 国产九九视频一区二区三区| 秋霞成人午夜伦在线观看| 亚洲高清免费观看高清完整版在线观看| 国产欧美中文在线| 久久综合色之久久综合| 欧美大白屁股肥臀xxxxxx| 91精品国产欧美一区二区成人| 色av一区二区| 99re热视频精品| 91网站最新网址| 91免费国产视频网站| av福利精品导航| 成人一区二区三区中文字幕| 国产凹凸在线观看一区二区| 国产一区二区三区在线看麻豆| 美女国产一区二区三区| 免费观看在线综合色| 免费在线观看日韩欧美| 蜜桃久久久久久| 久久精品99国产精品| 久久97超碰国产精品超碰| 久久av老司机精品网站导航| 精品一区二区日韩| 国产乱码精品一区二区三| 激情综合亚洲精品| 懂色av一区二区夜夜嗨| 成人激情免费网站| 一本到不卡免费一区二区| 在线观看国产91| 欧美日本视频在线| 欧美va亚洲va香蕉在线| 国产婷婷色一区二区三区| 欧美激情中文不卡| 亚洲欧美日韩一区二区 | 国产乱码精品1区2区3区| 六月丁香综合在线视频| 国产精品亚洲人在线观看| 成人高清伦理免费影院在线观看| 成人一区在线观看| 日本韩国欧美在线| 欧美卡1卡2卡| 久久久91精品国产一区二区精品 | 精品久久久久一区| 国产亚洲一本大道中文在线| 中文字幕在线播放不卡一区| 亚洲一级电影视频| 国产最新精品免费| 91尤物视频在线观看| 欧美日韩高清影院| 国产日本亚洲高清| 亚洲国产精品久久久男人的天堂| 久久国产视频网| 成人av在线网| 欧美一区二区在线免费播放| 中文字幕乱码亚洲精品一区| 亚洲综合在线五月| 精品一区二区三区久久| 色欧美片视频在线观看在线视频| 日韩一区二区免费视频| 1024亚洲合集| 韩国中文字幕2020精品| 91老师片黄在线观看| 日韩无一区二区| 亚洲人精品午夜| 久久99国产乱子伦精品免费| 99久久国产综合精品女不卡| 日韩欧美国产精品一区| 综合久久一区二区三区| 久久精品国产第一区二区三区| 91在线码无精品| 国产喂奶挤奶一区二区三区 | 久久精品国产在热久久| 99热这里都是精品| 日韩午夜精品视频| 亚洲最大的成人av| 成人午夜激情片| 精品粉嫩超白一线天av| 亚洲成av人影院| 99re66热这里只有精品3直播| 日韩一级片网站| 亚洲一二三四在线| 97久久超碰国产精品电影| 日韩一级片在线播放| 亚洲综合视频网| 99国产麻豆精品| 国产精品色婷婷久久58| 黑人巨大精品欧美一区| 欧美一级片在线观看| 亚洲综合免费观看高清在线观看| 粉嫩av一区二区三区粉嫩| 精品不卡在线视频| 老司机精品视频在线| 91精品国产一区二区三区| 一区二区三区四区中文字幕| 99精品欧美一区二区三区小说| 久久久不卡网国产精品二区| 久久激情五月激情| 欧美大片在线观看一区二区| 婷婷开心久久网| 欧美日韩黄视频| 亚洲福利视频导航| 欧美日韩精品一区二区三区蜜桃 | 欧美精品一区二区三区在线| 日韩精品成人一区二区三区| 欧美色综合网站| 亚洲1区2区3区视频| 欧美天堂一区二区三区| 一二三四区精品视频| 91精品91久久久中77777| 亚洲精品美腿丝袜| 在线亚洲免费视频| 亚洲一区二区高清| 欧美精品在线观看播放| 香蕉成人伊视频在线观看| 欧美男男青年gay1069videost | 久久疯狂做爰流白浆xx| 日韩视频中午一区| 精品影视av免费| 国产午夜精品一区二区| 成人高清免费在线播放| 亚洲欧美日韩久久| 欧美日本在线一区| 琪琪一区二区三区| 久久久午夜精品| 成人ar影院免费观看视频| 亚洲日本在线看| 欧美人体做爰大胆视频| 看国产成人h片视频| 日本一区二区三区dvd视频在线| 99精品黄色片免费大全| 亚洲一二三级电影| 日韩免费观看高清完整版在线观看| 韩国av一区二区三区在线观看| 中文字幕不卡的av| 欧美亚洲一区三区| 开心九九激情九九欧美日韩精美视频电影 | 精品福利二区三区| 丰满少妇在线播放bd日韩电影| 亚洲欧美在线视频观看| 欧美日韩国产精选| 懂色av一区二区三区免费观看| 亚洲综合激情小说| 久久精品日产第一区二区三区高清版 |