本文整理匯總了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;
}
示例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;
}
示例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;
}
示例4: _close
function _close()
{
return @sybase_close($this->_connectionID);
}
示例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;
}
示例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;
}
}
示例7: disconnect
protected function disconnect()
{
sybase_close($this->link);
}
示例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);
?>
示例9: close
function close()
{
sybase_close($this->db_link_ptr);
}
示例10: disconnect
/**
* Disconnect from the database
*/
protected function disconnect()
{
@sybase_close();
}
示例11: dbclose
/**
* Closes the connection to the database.
*
* @return boolean
*/
function dbclose()
{
return sybase_close($this->conn);
}
示例12: close
/**
* Disconnect
*
* @return bool success
*/
public function close()
{
$r = $this->handle && sybase_close($this->handle);
$this->handle = null;
return (bool) $r;
}
示例13: disconnect_sybase
function disconnect_sybase($sybase_link)
{
if ($sybase_link) {
sybase_close($sybase_link);
$sybase_link = false;
} else {
return false;
}
}
示例14: close
public function close()
{
sybase_free_result($this->result);
sybase_close($this->link);
}
示例15: _close
/**
* Close DB Connection
*
* @access public
* @param resource
* @return void
*/
function _close()
{
@sybase_close($this->conn_id);
}