當前位置: 首頁>>代碼示例>>PHP>>正文


PHP sybase_close函數代碼示例

本文整理匯總了PHP中sybase_close函數的典型用法代碼示例。如果您正苦於以下問題:PHP sybase_close函數的具體用法?PHP sybase_close怎麽用?PHP sybase_close使用的例子?那麽, 這裏精選的函數代碼示例或許可以為您提供幫助。


在下文中一共展示了sybase_close函數的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: close

 /**
  * Disconnect
  *
  * @return  bool success
  */
 public function close()
 {
     if ($this->handle && ($r = sybase_close($this->handle))) {
         $this->handle = NULL;
         return $r;
     }
     return FALSE;
 }
開發者ID:Gamepay,項目名稱:xp-framework,代碼行數:13,代碼來源:SybaseConnection.class.php

示例2: CanConnectDatabase

 function CanConnectDatabase()
 {
     global $dcl_domain_info, $dcl_domain;
     $conn = sybase_connect($dcl_domain_info[$dcl_domain]['dbHost'], $dcl_domain_info[$dcl_domain]['dbUser'], $dcl_domain_info[$dcl_domain]['dbPassword']);
     if ($conn > 0) {
         $bRetVal = sybase_select_db($dcl_domain_info[$dcl_domain]['dbName'], $conn);
         sybase_close($conn);
         return $bRetVal;
     }
     return false;
 }
開發者ID:ljvblfz,項目名稱:mysoftwarebrasil,代碼行數:11,代碼來源:class.DCL_DB_sybase.inc.php

示例3: findBookByPage

 public function findBookByPage($qtxt, $offset, $itemCountPerPage)
 {
     $link = $this->getDB();
     $qtxt = iconv("utf-8", "gbk//ignore", $qtxt);
     $rs = sybase_query("exec llt_searchByPage " . "'" . $qtxt . "'," . $offset . "," . $itemCountPerPage, $link);
     $data = array();
     while ($row = sybase_fetch_array($rs)) {
         $book = new Book();
         $book->no = $row["ctrlno"];
         $book->title = iconv("gbk", "utf-8//ignore", $row["title"]);
         $book->authors = iconv("gbk", "utf-8//ignore", $row["authors"]);
         $book->publisher = iconv("gbk", "utf-8//ignore", $row["publisher"]);
         $book->pubdate = iconv("gbk", "utf-8//ignore", $row["pubdate"]);
         $book->barcode = $row["barcode"];
         $book->status = iconv("gbk", "utf-8//ignore", $row["status"]);
         $book->classno = iconv("gbk", "utf-8//ignore", $row["classno"]);
         array_push($data, $book);
     }
     sybase_free_result($rs);
     sybase_close($link);
     return $data;
 }
開發者ID:blackjackedu,項目名稱:FreeMLib,代碼行數:22,代碼來源:BookSearch.php

示例4: _close

 function _close()
 {
     return @sybase_close($this->_connectionID);
 }
開發者ID:ceryxSeidor,項目名稱:ProyectoPruebaWSV2,代碼行數:4,代碼來源:adodb-sybase.inc.php

示例5: disconnect

 /**
  * Disconnects from database.
  *
  * @return boolean True if the database could be disconnected, else false
  */
 function disconnect()
 {
     $this->connected = !@sybase_close($this->connection);
     return !$this->connected;
 }
開發者ID:christianallred,項目名稱:fluent_univ,代碼行數:10,代碼來源:dbo_sybase.php

示例6: sql_logout

function sql_logout($id)
{
    global $dbtype;
    switch ($dbtype) {
        case "MySQL":
            $dbi = @mysql_close($id);
            return $dbi;
            break;
        case "mSQL":
            $dbi = @msql_close($id);
            return $dbi;
            break;
        case "postgres":
        case "postgres_local":
            $dbi = @pg_close($id);
            return $dbi;
            break;
        case "ODBC":
        case "ODBC_Adabas":
            $dbi = @odbc_close($id);
            return $dbi;
            break;
        case "Interbase":
            $dbi = @ibase_close($id);
            return $dbi;
            break;
        case "Sybase":
            $dbi = @sybase_close($id);
            return $dbi;
            break;
        default:
            break;
    }
}
開發者ID:BackupTheBerlios,項目名稱:domsmod-svn,代碼行數:34,代碼來源:sql_layer.php

示例7: disconnect

 protected function disconnect()
 {
     sybase_close($this->link);
 }
開發者ID:Deepab23,項目名稱:clinic,代碼行數:4,代碼來源:sybase.php

示例8: die

<?php

//phpinfo();
$link = @sybase_connect('lltang2000', 'sa', '******') or die("Could not connect !");
//連接數據庫,第一空必須寫服務名稱,不能是ip;
echo "Connected successfully<br>";
$db = @sybase_select_db("sulcmis", $link) or die("數據庫沒有選擇");
echo "數據庫選擇成功<br>";
$sql = "select ctrlNo,F200,F210c from b_brief where ctrlNo<100";
$rs = sybase_query($sql, $link);
//查詢表
if (!$rs) {
    echo "SQL:" . $sql . "執行失敗!";
    exit;
}
//$sybase = sybase_fetch_array($rs);
//print_r($sybase);//結束
echo '<table border="1"><tr><td>CtrlNO</td><td>F200</td><td>F210c</td>';
while ($row = sybase_fetch_array($rs)) {
    $id = $row["ctrlNo"];
    $F200 = $row["F200"];
    $F210c = $row["F210c"];
    echo '<tr><td>' . $id . '</td><td>' . $F200 . '</td><td>' . $F210c . '</td></tr>';
}
echo '</table>';
sybase_free_result($rs);
sybase_close($link);
?>

開發者ID:blackjackedu,項目名稱:FreeMLib,代碼行數:28,代碼來源:index.php

示例9: close

 function close()
 {
     sybase_close($this->db_link_ptr);
 }
開發者ID:rezarahimi4861,項目名稱:icmf,代碼行數:4,代碼來源:sybase.php

示例10: disconnect

 /**
  * Disconnect from the database
  */
 protected function disconnect()
 {
     @sybase_close();
 }
開發者ID:jens-wetzel,項目名稱:use2,代碼行數:7,代碼來源:DB_Sybase.php

示例11: dbclose

 /**
  * Closes the connection to the database.
  * 
  * @return boolean
  */
 function dbclose()
 {
     return sybase_close($this->conn);
 }
開發者ID:jr-ewing,項目名稱:phpMyFAQ,代碼行數:9,代碼來源:Sybase.php

示例12: close

 /**
  * Disconnect
  *
  * @return  bool success
  */
 public function close()
 {
     $r = $this->handle && sybase_close($this->handle);
     $this->handle = null;
     return (bool) $r;
 }
開發者ID:xp-framework,項目名稱:rdbms,代碼行數:11,代碼來源:SybaseConnection.class.php

示例13: disconnect_sybase

 function disconnect_sybase($sybase_link)
 {
     if ($sybase_link) {
         sybase_close($sybase_link);
         $sybase_link = false;
     } else {
         return false;
     }
 }
開發者ID:laiello,項目名稱:cartonbank,代碼行數:9,代碼來源:phpMM_V_23_08_2007.php

示例14: close

 public function close()
 {
     sybase_free_result($this->result);
     sybase_close($this->link);
 }
開發者ID:perpel,項目名稱:ywfy,代碼行數:5,代碼來源:Sybase.php

示例15: _close

 /**
  * Close DB Connection
  *
  * @access	public
  * @param	resource
  * @return	void
  */
 function _close()
 {
     @sybase_close($this->conn_id);
 }
開發者ID:belalangkunyit,項目名稱:ci30sybase,代碼行數:11,代碼來源:sybase_driver.php


注:本文中的sybase_close函數示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。