mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
fixing example as requested by Antony Dovgal and confirmed by Mike Ford
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@142531 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9f4ba811fd
commit
034fd31685
1 changed files with 6 additions and 6 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.8 $ -->
|
||||
<!-- $Revision: 1.9 $ -->
|
||||
<!-- splitted from ./en/functions/oci8.xml, last change in rev 1.2 -->
|
||||
<refentry id="function.ocibindbyname">
|
||||
<refnamediv>
|
||||
|
@ -61,13 +61,13 @@ $data = array(1111 => "Larry", 2222 => "Bill", 3333 => "Jim");
|
|||
|
||||
$rowid = OCINewDescriptor($conn,OCI_D_ROWID);
|
||||
|
||||
OCIBindByName($stmt,":empno",&$empno,32);
|
||||
OCIBindByName($stmt,":ename",&$ename,32);
|
||||
OCIBindByName($stmt,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($stmt,":empno",$empno,32);
|
||||
OCIBindByName($stmt,":ename",$ename,32);
|
||||
OCIBindByName($stmt,":rid",$rowid,-1,OCI_B_ROWID);
|
||||
|
||||
$update = OCIParse($conn,"update emp set sal = :sal where ROWID = :rid");
|
||||
OCIBindByName($update,":rid",&$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($update,":sal",&$sal,32);
|
||||
OCIBindByName($update,":rid",$rowid,-1,OCI_B_ROWID);
|
||||
OCIBindByName($update,":sal",$sal,32);
|
||||
|
||||
$sal = 10000;
|
||||
|
||||
|
|
Loading…
Reference in a new issue