Date: 09/04/99
- Next message: Sascha Schumann: "[PHP-DEV] cvs: /phpdoc/functions wddx.sgml"
- Previous message: Bug Database: "[PHP-DEV] Bug #1886 Updated: Non-Blocking Socket / flush does not output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
sr Sat Sep 4 06:25:23 1999 EDT
Modified files:
/phpdoc/functions oci8.sgml
Log:
Adapted OCI(N)Logon examples to work with new printout of resource ids in PHP4.
Index: phpdoc/functions/oci8.sgml
diff -u phpdoc/functions/oci8.sgml:1.9 phpdoc/functions/oci8.sgml:1.10
--- phpdoc/functions/oci8.sgml:1.9 Fri Sep 3 05:47:13 1999
+++ phpdoc/functions/oci8.sgml Sat Sep 4 06:25:23 1999
@@ -238,7 +238,7 @@
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 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 @@
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 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";
}
-- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: php-dev-unsubscribe <email protected> For additional commands, e-mail: php-dev-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Sascha Schumann: "[PHP-DEV] cvs: /phpdoc/functions wddx.sgml"
- Previous message: Bug Database: "[PHP-DEV] Bug #1886 Updated: Non-Blocking Socket / flush does not output"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

