当前位置: 首页>>代码示例>>PHP>>正文


PHP sqlite_rewind函数代码示例

本文整理汇总了PHP中sqlite_rewind函数的典型用法代码示例。如果您正苦于以下问题:PHP sqlite_rewind函数的具体用法?PHP sqlite_rewind怎么用?PHP sqlite_rewind使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了sqlite_rewind函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: rewind

 public function rewind()
 {
     return sqlite_rewind($this->result);
 }
开发者ID:BackupTheBerlios,项目名称:medick-svn,代码行数:4,代码来源:sqlite.php

示例2: sqlitem_rewind

function sqlitem_rewind($result)
{
    die('sqlitem_rewind not implemented in PDO');
    return sqlite_rewind($result);
}
开发者ID:jaketay,项目名称:raspberry_pi,代码行数:5,代码来源:sqlite3.inc.php

示例3: data_seek

 /**
  * Se Mueve al resultado indicado por $number en un select
  *
  * @param int $number
  * @param resource $resultQuery
  * @return boolean
  */
 function data_seek($number, $resultQuery = '')
 {
     if (!$resultQuery) {
         $resultQuery = $this->last_result_query;
         if (!$resultQuery) {
             return false;
         }
     }
     if (($success = sqlite_rewind($resultQuery, $number)) !== false) {
         return $success;
     } else {
         throw new KumbiaException($this->error());
     }
 }
开发者ID:Jamp,项目名称:sgas,代码行数:21,代码来源:sqlite.php

示例4: sqlitem_rewind

function sqlitem_rewind($result)
{
    return sqlite_rewind($result);
}
开发者ID:jaketay,项目名称:raspberry_pi,代码行数:4,代码来源:sqlite2.inc.php

示例5: res2arr

 /**
  * Returns a complete result set as array
  */
 function res2arr($res)
 {
     $data = array();
     if ($this->extension == DOKU_EXT_SQLITE) {
         if (!sqlite_num_rows($res)) {
             return $data;
         }
         sqlite_rewind($res);
         while (($row = sqlite_fetch_array($res, SQLITE_ASSOC)) !== false) {
             $data[] = $row;
         }
     } else {
         if (!$res) {
             return $data;
         }
         $data = $res->fetchAll(PDO::FETCH_ASSOC);
     }
     return $data;
 }
开发者ID:stretchyboy,项目名称:sqlite,代码行数:22,代码来源:helper.php

示例6: rewind

 public function rewind()
 {
     $lastresult = $this->results[$this->lasthash];
     sqlite_rewind($lastresult);
 }
开发者ID:mustafakarali,项目名称:orchidframework,代码行数:5,代码来源:sqlitedriver.php

示例7: res2arr

 /**
  * Returns a complete result set as array
  */
 function res2arr($res)
 {
     $data = array();
     if (!sqlite_num_rows($res)) {
         return $data;
     }
     sqlite_rewind($res);
     while (($row = sqlite_fetch_array($res)) !== false) {
         $data[] = $row;
     }
     return $data;
 }
开发者ID:speed47,项目名称:plugin-blogtng,代码行数:15,代码来源:sqlite.php

示例8: rewind

 /**
  * This method actually has no effect, since we do not rewind ResultSet for iteration.
  */
 function rewind()
 {
     sqlite_rewind($this->result);
 }
开发者ID:rodrigoprestesmachado,项目名称:whiteboard,代码行数:7,代码来源:SQLiteResultSetIterator.php

示例9: sqlite_query

/////////////
sqlite_query("CREATE TABLE strings(a VARCHAR)", $db);
foreach ($data as $str) {
    sqlite_query("INSERT INTO strings VALUES('{$str}')", $db);
}
$r = sqlite_unbuffered_query("SELECT a from strings", $db);
while (sqlite_valid($r)) {
    var_dump(sqlite_current($r, SQLITE_NUM));
    sqlite_next($r);
}
$r = sqlite_query("SELECT a from strings", $db);
while (sqlite_valid($r)) {
    var_dump(sqlite_current($r, SQLITE_NUM));
    sqlite_next($r);
}
sqlite_rewind($r);
while (sqlite_valid($r)) {
    var_dump(sqlite_current($r, SQLITE_NUM));
    sqlite_next($r);
}
sqlite_exec("DROP TABLE strings", $db);
///////
sqlite_query("CREATE TABLE strings(foo VARCHAR, bar VARCHAR, baz VARCHAR)", $db);
echo "Buffered\n";
$r = sqlite_query("SELECT * from strings", $db);
echo "num fields: " . sqlite_num_fields($r) . "\n";
for ($i = 0; $i < sqlite_num_fields($r); $i++) {
    var_dump(sqlite_field_name($r, $i));
}
echo "Unbuffered\n";
$r = sqlite_unbuffered_query("SELECT * from strings", $db, SQLITE_NUM, $errmsg);
开发者ID:jenalgit,项目名称:roadsend-php,代码行数:31,代码来源:ztests.php

示例10: _rewind

 protected function _rewind()
 {
     return @sqlite_rewind($this->_idResult);
 }
开发者ID:havefnubb,项目名称:havefnubb,代码行数:4,代码来源:sqlite.dbresultset.php

示例11: rewind

 /**
  * Rewind the result set
  *
  * @param resource $res
  * @return boolean
  */
 public function rewind($res)
 {
     sqlite_rewind($res);
 }
开发者ID:djeraseit,项目名称:quickbooks-php,代码行数:10,代码来源:Sqlite3.php

示例12: res2arr

 /**
  * Returns a complete result set as array
  */
 public function res2arr($res, $assoc = true)
 {
     $data = array();
     if (!$res) {
         return $data;
     }
     if (!sqlite_num_rows($res)) {
         return $data;
     }
     sqlite_rewind($res);
     $mode = $assoc ? SQLITE_ASSOC : SQLITE_NUM;
     while (($row = sqlite_fetch_array($res, $mode)) !== false) {
         $data[] = $row;
     }
     return $data;
 }
开发者ID:omusico,项目名称:isle-web-framework,代码行数:19,代码来源:adapter_sqlite2.php

示例13: db_rewind

function db_rewind($res)
{
    sqlite_rewind($res);
}
开发者ID:BackupTheBerlios,项目名称:diskat-svn,代码行数:4,代码来源:db.php

示例14: rewind

 function rewind()
 {
     //just to abstract from sqlite
     sqlite_rewind($this->result);
 }
开发者ID:jimmac,项目名称:original,代码行数:5,代码来源:db.class.inc.php

示例15: rewind

 public function rewind($result)
 {
     sqlite_rewind($result);
 }
开发者ID:alanszlosek,项目名称:dbFacile,代码行数:4,代码来源:sqlite2.php


注:本文中的sqlite_rewind函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。