當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。