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

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? common.php

?? asterisk 計費
?? PHP
?? 第 1 頁 / 共 5 頁
字號:
     *
     * @param string $query   the query
     * @param intr   $from    the row to start to fetching (0 = the first row)
     * @param int    $count   the numbers of rows to fetch
     * @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  a new DB_result object for successful SELECT queries
     *                 or DB_OK for successul data manipulation queries.
     *                 A DB_Error object on failure.
     */
    function &limitQuery($query, $from, $count, $params = array())
    {
        $query = $this->modifyLimitQuery($query, $from, $count, $params);
        if (DB::isError($query)){
            return $query;
        }
        $result =& $this->query($query, $params);
        if (is_a($result, 'DB_result')) {
            $result->setOption('limit_from', $from);
            $result->setOption('limit_count', $count);
        }
        return $result;
    }

    // }}}
    // {{{ getOne()

    /**
     * Fetches the first column of the first row from a query result
     *
     * 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.
     *                 A DB_Error object on failure.
     */
    function &getOne($query, $params = array())
    {
        $params = (array)$params;
        // modifyLimitQuery() would be nice here, but it causes BC issues
        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;
        }

        return $row[0];
    }

    // }}}
    // {{{ getRow()

    /**
     * Fetches the first row of data returned from a query result
     *
     * 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.
     * @param int $fetchmode  the fetch mode to use
     *
     * @return array  the first row of results as an array.
     *                 A DB_Error object on failure.
     */
    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();
            }
        }
        // modifyLimitQuery() would be nice here, but it causes BC issues
        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()

    /**
     * Fetches a single column from a query result and returns 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  the results as an array.  A DB_Error object on failure.
     *
     * @see DB_common::query()
     */
    function &getCol($query, $col = 0, $params = array())
    {
        $params = (array)$params;
        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;

        if (!is_array($row = $res->fetchRow($fetchmode))) {
            $ret = array();
        } else {
            if (!array_key_exists($col, $row)) {
                $ret =& $this->raiseError(DB_ERROR_NOSUCHFIELD);
            } else {
                $ret = array($row[$col]);
                while (is_array($row = $res->fetchRow($fetchmode))) {
                    $ret[] = $row[$col];
                }
            }
        }

        $res->free();

        if (DB::isError($row)) {
            $ret = $row;
        }

        return $ret;
    }

    // }}}
    // {{{ getAssoc()

    /**
     * Fetches an entire query result and returns 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 bool   $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 int   $fetchmode     the fetch mode to use
     * @param bool  $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  the associative array containing the query results.
     *                A DB_Error object on failure.
     */
    function &getAssoc($query, $force_array = false, $params = array(),
                       $fetchmode = DB_FETCHMODE_DEFAULT, $group = false)
    {
        $params = (array)$params;
        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()

    /**
     * Fetches all of the rows from a query result
     *
     * @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

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
亚洲欧洲精品一区二区精品久久久| 国产精品久久夜| proumb性欧美在线观看| 亚洲小说欧美激情另类| 国产欧美视频在线观看| 91精品视频网| 日本高清免费不卡视频| 国产精品一区二区在线观看网站| 亚洲图片欧美视频| 中文字幕一区二区三区四区不卡| 日韩精品一区二区三区在线播放| 97se亚洲国产综合自在线观| 国产一区二三区| 免费在线观看一区二区三区| 洋洋成人永久网站入口| 中文字幕一区二区三区在线不卡| 2023国产精品| 精品日本一线二线三线不卡| 8x福利精品第一导航| 91福利视频在线| 94-欧美-setu| 97精品久久久午夜一区二区三区 | 亚洲成人777| 亚洲人成7777| 亚洲日本乱码在线观看| 国产精品色呦呦| 亚洲国产激情av| 欧美久久久久久久久| 大胆欧美人体老妇| 国产成人啪免费观看软件| 久久成人免费电影| 激情偷乱视频一区二区三区| 五月激情综合婷婷| 丝袜诱惑制服诱惑色一区在线观看 | 精品国产污网站| 日韩午夜精品电影| 欧美一级二级三级乱码| 欧美一级一级性生活免费录像| 欧美日韩久久不卡| 69精品人人人人| 91精品视频网| 亚洲精品在线三区| 国产日韩欧美精品综合| 欧美韩日一区二区三区四区| 国产午夜精品福利| 日本一区二区视频在线观看| 国产蜜臀97一区二区三区 | 亚洲高清免费视频| 日韩成人一区二区| 久久精品国产精品青草| 国产一区二区在线看| 岛国精品在线观看| 91热门视频在线观看| 欧美亚洲精品一区| 欧美高清一级片在线| 欧美成人国产一区二区| 精品少妇一区二区三区日产乱码| 亚洲精品一区在线观看| 国产精品嫩草影院com| 一区二区三区欧美视频| 奇米影视在线99精品| 国产精品自在在线| 99久久精品免费看国产| 欧美日韩国产天堂| 久久久噜噜噜久噜久久综合| 中文字幕亚洲在| 天天影视色香欲综合网老头| 国内成+人亚洲+欧美+综合在线| 成人做爰69片免费看网站| 欧美主播一区二区三区美女| 精品毛片乱码1区2区3区| 中文久久乱码一区二区| 午夜av电影一区| 国产在线麻豆精品观看| 色综合久久中文字幕综合网| 91精品国产色综合久久不卡电影| 久久久久88色偷偷免费| 亚洲国产综合色| 国产不卡免费视频| 欧美老女人在线| 中文字幕高清不卡| 肉色丝袜一区二区| caoporen国产精品视频| 3d成人动漫网站| 国产精品福利一区二区| 美国三级日本三级久久99| 99久久国产综合精品麻豆| 欧美一区二区三区啪啪| 国产精品国产馆在线真实露脸| 日韩精品视频网站| 9久草视频在线视频精品| 欧美v亚洲v综合ⅴ国产v| 亚洲精品美国一| 国产精品一品二品| 欧美一卡在线观看| 亚洲欧美国产高清| 国产成人精品影视| 91精品国产91久久综合桃花| 中文字幕永久在线不卡| 国产综合久久久久久鬼色| 色999日韩国产欧美一区二区| 久久久久9999亚洲精品| 日韩精品一卡二卡三卡四卡无卡| 91在线观看高清| 久久精品一区蜜桃臀影院| 免费视频一区二区| 在线视频一区二区三| 国产精品盗摄一区二区三区| 国产一区日韩二区欧美三区| 91精品欧美久久久久久动漫 | 亚洲成人一区在线| 色悠久久久久综合欧美99| 中文字幕av资源一区| 国内精品伊人久久久久av影院| 欧美丰满高潮xxxx喷水动漫| 亚洲精品国产a| 99久久精品费精品国产一区二区| 2欧美一区二区三区在线观看视频 337p粉嫩大胆噜噜噜噜噜91av | 成人av在线影院| 久久精品人人做人人爽人人| 久久精品国产免费| 欧美大尺度电影在线| 偷窥少妇高潮呻吟av久久免费| 色视频一区二区| 亚洲三级电影全部在线观看高清| 成人91在线观看| 国产精品入口麻豆九色| 成人精品在线视频观看| 中文字幕成人在线观看| 懂色av中文字幕一区二区三区| 精品粉嫩aⅴ一区二区三区四区| 日本aⅴ免费视频一区二区三区 | 成人激情av网| 中文字幕不卡在线观看| 成人免费视频caoporn| 日本一区二区电影| 不卡的看片网站| 亚洲欧美另类综合偷拍| 日本精品视频一区二区三区| 亚洲精品一二三| 欧美日韩不卡在线| 日本午夜一区二区| 欧美精品一区二区三区蜜桃视频 | 亚洲观看高清完整版在线观看| 色八戒一区二区三区| 亚洲综合一二三区| 欧美日韩国产综合久久| 蜜桃视频一区二区| 精品国精品国产| 国产一级精品在线| 国产精品进线69影院| 日本道免费精品一区二区三区| 亚洲在线视频一区| 在线综合+亚洲+欧美中文字幕| 黑人精品欧美一区二区蜜桃| 久久久久久久一区| 色欧美88888久久久久久影院| 亚洲免费在线观看| 欧美日韩中文字幕一区| 日本在线不卡视频一二三区| 精品成人一区二区| 大陆成人av片| 亚洲成人精品在线观看| 欧美体内she精高潮| 一本色道久久综合亚洲91| 欧美精品久久久久久久久老牛影院| 三级一区在线视频先锋| 日韩免费成人网| 成人激情综合网站| 亚洲综合一区二区| 久久久五月婷婷| 精品视频在线视频| 国产毛片精品视频| 一区二区三区高清在线| 7777精品久久久大香线蕉| 粉嫩在线一区二区三区视频| 亚洲女爱视频在线| 精品久久人人做人人爰| 成人毛片视频在线观看| 日本中文字幕一区| 中文字幕视频一区| 日韩视频国产视频| 99精品在线免费| 精彩视频一区二区| 亚洲人成7777| 久久久一区二区三区捆绑**| 欧美专区在线观看一区| 国产jizzjizz一区二区| 日本亚洲天堂网| 17c精品麻豆一区二区免费| 欧美一卡二卡三卡| 在线免费亚洲电影| 国产一区二区日韩精品| 五月婷婷久久综合| 欧美高清在线视频| 欧美变态tickling挠脚心| 91国偷自产一区二区三区观看 | 国产精品一区二区三区四区 | 麻豆成人在线观看| 一区二区视频在线|