本文整理汇总了PHP中sybase_close函数的典型用法代码示例。如果您正苦于以下问题:PHP sybase_close函数的具体用法?PHP sybase_close怎么用?PHP sybase_close使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sybase_close函数的17个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: disconnect
/**
* Disconnects from the database server
*
* @return bool TRUE on success, FALSE on failure
*/
function disconnect()
{
$ret = @sybase_close($this->connection);
$this->connection = null;
return $ret;
}
开发者ID:Cyberspace-Networks,项目名称:PeopleAggregator,代码行数:11,代码来源:sybase.php
示例17: close
public function close()
{
if (!empty($this->connect)) {
@sybase_close($this->connect);
} else {
return false;
}
}
开发者ID:Allopa,项目名称:ZN-Framework-Starter,代码行数:8,代码来源:SybaseDriver.php
注:本文中的sybase_close函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论