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


PHP OCILogoff函数代码示例

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


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

示例1: Execute

 /**
  *Execução de comandos padrões de consulta a banco (SELECT, INSERT, UPDATE, DELETE, CREATE...)
  *@name execute()
  *@return ObjectQuery
  **/
 public function Execute($argSql, $argName = NAME_QUERY)
 {
     global $result;
     # call the connect database method
     $sqli = $this->conn->__conecta();
     # instancia as variáveis
     $this->sql = $argSql;
     $this->name = $argName;
     //echo $this->dbtype;
     //exit;
     if ($this->conn->typedb == "mysql") {
         try {
             # execute sql command
             $result = $sqli->query($this->sql);
             # fecha a conexão com o banco de dados
             $sqli->close();
             # retorno do método
             return $result;
         } catch (Exception $e) {
             echo "<b>Erro de query: </b>" . $e->getMessage() . "\n <b>Linha: </b>" . $e->getLine() . "\n";
         }
     }
     if ($this->conn->typedb == "oracle") {
         try {
             $result = oci_parse($sqli, $this->sql);
             oci_execute($result);
             oci_commit($sqli);
             OCILogoff($sqli);
             return $result;
         } catch (Exception $e) {
             OCILogoff($sqli);
             echo "<b>Erro de query: </b>" . $e->getMessage() . "\n <b>Linha: </b>" . $e->getLine() . "\n";
         }
     }
 }
开发者ID:stagoe90,项目名称:InfinitumEprocurement,代码行数:40,代码来源:queryBuilder.class.php

示例2: closeConnection

 public function closeConnection()
 {
     $this->freeResults();
     if ($this->connection != null) {
         OCILogoff($this->connection);
     }
 }
开发者ID:rawork,项目名称:colors-life,代码行数:7,代码来源:ociConnector.php

示例3: sql_close

 function sql_close()
 {
     if ($this->db_connect_id) {
         // Commit outstanding transactions
         if ($this->in_transaction) {
             OCICommit($this->db_connect_id);
         }
         if ($this->query_result) {
             @OCIFreeStatement($this->query_result);
         }
         $result = @OCILogoff($this->db_connect_id);
         return $result;
     } else {
         return false;
     }
 }
开发者ID:damncabbage,项目名称:publicwhip,代码行数:16,代码来源:oracle.php

示例4: _close

	function _close()
	{
		if (!$this->_connectionID) return;

		if (!$this->autoCommit) OCIRollback($this->_connectionID);
		if (count($this->_refLOBs) > 0) {
			foreach ($this ->_refLOBs as $key => $value) {
				$this->_refLOBs[$key]['LOB']->free();
				unset($this->_refLOBs[$key]);
			}
		}
		OCILogoff($this->_connectionID);

		$this->_stmt = false;
		$this->_connectionID = false;
	}
开发者ID:BackupTheBerlios,项目名称:oos-svn,代码行数:16,代码来源:adodb-oci8.old.inc.php

示例5: executePlainSQL

				</script>
				<?php 
            }
        }
    }
    // Fetch the customer profile based on the cid from cookies
    $q = "select * from Customer where cid = '" . $cid . "'";
    $result = executePlainSQL($q);
    $row = OCI_Fetch_Array($result, OCI_BOTH);
    $cname = $row['CNAME'];
    $email = $row['EMAIL'];
    $addr = $row['ADDRESS'];
    $phone = $row['PHONE'];
    $passport_country = $row['PASSPORT_COUNTRY'];
    $passport_num = $row['PASSPORT_NUM'];
    OCILogoff($db_conn);
}
?>
<div class="content-customer-area">

<p>Edit your profile:</p>
<form class="pure-form pure-form-aligned" method="POST" action="profile.php">
    <fieldset>
        <div class="pure-control-group">
            <label for="name">Name</label>
            <input id="name" type="text" name="cname" value="<?php 
echo $cname;
?>
">
        </div>
开发者ID:holybom,项目名称:ubcair,代码行数:30,代码来源:profile.php

示例6: close

 /**
  *	This function will close the database connection.
  */
 function close()
 {
     if ($this->_conn != null) {
         $this->_conn = null;
         @OCILogoff($this->_conn);
     }
 }
开发者ID:BackupTheBerlios,项目名称:ydframework-svn,代码行数:10,代码来源:YDDatabaseDriver_oracle.php

示例7: _close

 function _close()
 {
     if (!$this->autoCommit) {
         OCIRollback($this->_connectionID);
     }
     OCILogoff($this->_connectionID);
     $this->_stmt = false;
     $this->_connectionID = false;
 }
开发者ID:BackupTheBerlios,项目名称:facturaphp-svn,代码行数:9,代码来源:adodb-oci8.inc.php

示例8: close

 public function close()
 {
     $this->gc(ini_get('session.gc_maxlifetime'));
     return OCILogoff(self::$_db);
 }
开发者ID:marcelocaixeta,项目名称:zf1,代码行数:5,代码来源:Db.php

示例9: OCILogon

  <input type="button" onclick="crearEvento()" value="Crear evento"></input>
</div>
</body>

<?php 
include "conexion.php";
$conn = OCILogon($user, $pass, $db);
$outrefc = ocinewcursor($conn);
//Declare cursor variable
$mycursor = ociparse($conn, "begin get_AllTeams(:curs); end;");
// prepare procedure call
ocibindbyname($mycursor, ':curs', $outrefc, -1, OCI_B_CURSOR);
// bind procedure parameters
$ret = ociexecute($mycursor);
// Execute function
$ret = ociexecute($outrefc);
// Execute cursor
$nrows = ocifetchstatement($outrefc, $data);
// fetch data from cursor
ocifreestatement($mycursor);
// close procedure call
ocifreestatement($outrefc);
// close cursor
//var_dump($data);
echo " <div id ='subStadiumBox'class='subStadiumBox'>";
for ($p = 0; $p < count($data["NAME_TEAM"]); $p++) {
    $nombre = $data["NAME_TEAM"][$p];
    echo "<script type='text/javascript'>anadirEquipo('{$nombre}');</script>";
}
OCILogoff($conn);
开发者ID:andreysanchezcr,项目名称:Tournament-FPes,代码行数:30,代码来源:Grupos.php

示例10: close

 function close()
 {
     if ($this->Query_ID) {
         $this->free_result();
     }
     if ($this->Connected && !$this->Persistent) {
         OCILogoff($this->Link_ID);
         $this->Connected = false;
     }
 }
开发者ID:santo-s,项目名称:do_sql.js,代码行数:10,代码来源:db_oci8.php

示例11: disconnect

 /**
  * db::disconnect()
  * 
  * @return 
  **/
 function disconnect()
 {
     global $GonxAdmin;
     switch ($GonxAdmin["dbtype"]) {
         case "mysql":
             @mysql_close($this->Link_ID);
             break;
         case "postgresql":
             @pg_close($this->Link_ID);
             break;
         case "mssql":
             @mssql_close($this->Link_ID);
             break;
         case "sqlite":
             break;
         case "oracle":
             @OCILogoff($this->Link_ID);
             break;
     }
 }
开发者ID:469306621,项目名称:Languages,代码行数:25,代码来源:database_abstraction_class.php

示例12: ocilogon

$username = $_POST['username'];
$password = $_POST['pwd'];
if ($password == null) {
    echo '<font color="' . red . '">Password cannot be blank. Please enter a valid password</font>';
    echo "<br/><br/>";
    echo "<a href='http://uisacad.uis.edu/~kmulpu2/PasswordReset.html'>Back To Password Reset Page</a>";
    exit;
}
$connection = ocilogon("tanis2", "oracle", "oracle.uis.edu");
$sqlquery = "UPDATE CREDENTIALS SET password='" . $password . "' WHERE username='" . $username . "'";
$sql_id = ociparse($connection, $sqlquery);
if (!$sql_id) {
    $e = oci_error($connection);
    echo "The following error occured:";
    print htmlentities($e['message']);
    exit;
}
$returnValue = ociexecute($sql_id, OCI_DEFAULT);
if ($returnValue == 1) {
    echo '<font color="' . blue . '">Password was reset successfully</font>';
    ocicommit($connection);
    echo "<br/><br/>";
    echo "<a href='http://uisacad.uis.edu/~kmulpu2/DillardsReporting.html'>Back To Login Page</a>";
} else {
    echo '<font color="' . red . '">Unable to reset password due to server issues. Please try again later</font>';
}
OCIFreeStatement($sql_id);
OCILogoff($connection);
?>
</body>
</html>
开发者ID:priyalgandhi03,项目名称:DBMS,代码行数:31,代码来源:PasswordUpdate.php

示例13: disconnect

 function disconnect()
 {
     if ($this->Debug) {
         printf("Disconnecting...<br>\n");
     }
     OCILogoff($this->Link_ID);
 }
开发者ID:butch,项目名称:asterisk-cdr-plus,代码行数:7,代码来源:phplib_oci8.php

示例14: destruct

 function destruct()
 {
     @OCIFreeStatement($this->stmt);
     @OCILogoff($this->conn);
     return TRUE;
 }
开发者ID:BackupTheBerlios,项目名称:phporacleadmin,代码行数:6,代码来源:database.lib.php

示例15: OCILogoff

<html>
<?php 
if ($c = OCILogon("ora_p2n8", "a36523124", "ug")) {
    echo "Successfully connected to Oracle.\n";
    OCILogoff($c);
} else {
    $err = OCIError();
    echo "Oracle Connect Error " . $err['message'];
}
?>
</html>
开发者ID:jfseo,项目名称:Transit-Database,代码行数:11,代码来源:test.php


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