mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-15 16:38:54 +00:00
Adapted OCI(N)Logon examples to work with new printout of resource ids in PHP4.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@12535 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
664ad5ad0a
commit
b501269ede
1 changed files with 4 additions and 4 deletions
|
@ -238,7 +238,7 @@ $c2 = ocilogon("scott","tiger",$db);
|
|||
|
||||
function create_table($conn)
|
||||
{ $stmt = ociparse($conn,"create table scott.hallo (test
|
||||
varchar2(32))");
|
||||
varchar2(64))");
|
||||
ociexecute($stmt);
|
||||
echo $conn." created table\n\n";
|
||||
}
|
||||
|
@ -250,7 +250,7 @@ function drop_table($conn)
|
|||
}
|
||||
|
||||
function insert_data($conn)
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values($conn || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
ociexecute($stmt,OCI_DEFAULT);
|
||||
echo $conn." inserted hallo\n\n";
|
||||
}
|
||||
|
@ -389,7 +389,7 @@ $c2 = ocinlogon("scott","tiger",$db);
|
|||
|
||||
function create_table($conn)
|
||||
{ $stmt = ociparse($conn,"create table scott.hallo (test
|
||||
varchar2(32))");
|
||||
varchar2(64))");
|
||||
ociexecute($stmt);
|
||||
echo $conn." created table\n\n";
|
||||
}
|
||||
|
@ -401,7 +401,7 @@ function drop_table($conn)
|
|||
}
|
||||
|
||||
function insert_data($conn)
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values($conn || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
{ $stmt = ociparse($conn,"insert into scott.hallo values('$conn' || ' ' || to_char(sysdate,'DD-MON-YY HH24:MI:SS'))");
|
||||
ociexecute($stmt,OCI_DEFAULT);
|
||||
echo $conn." inserted hallo\n\n";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue