Date: 01/18/00
- Next message: Ulf Wendel: "[PHPLIB-DEV] MSSQL Bug: use of non existant mssql_affected_rows()"
- Previous message: Rimon Barr: "[PHPLIB-DEV] custom tags"
- Next in thread: olga: "[PHPLIB-DEV] OCINewCursor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
The following example for the function OCINewCursor dosn't work:
<?php
// suppose your stored procedure info.output returns a ref cursor in
:data
$conn = OCILogon("scott","tiger");
$curs = OCINewCursor($conn);
$stmt = OCIParse($conn,"begin info.output(:data); end;");
ocibindbyname($stmt,"data",&$curs,-1,OCI_B_CURSOR);
ociexecute($stmt);
ociexecute($curs);
/*line 7*/ while (OCIFetchInto($curs,&$data)) {
var_dump($data);
}
OCIFreeCursor($stmt);
OCIFreeStatement($curs);
OCILogoff($conn);
?>
I recieved the following error:
Warning: OCIFetchInto:
ORA-24374: define not done before fetch or execute and fetch in
<c:\Program Files.... on line 7> PLEASE HELP
thank you in advance
best regards
Olga
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: Ulf Wendel: "[PHPLIB-DEV] MSSQL Bug: use of non existant mssql_affected_rows()"
- Previous message: Rimon Barr: "[PHPLIB-DEV] custom tags"
- Next in thread: olga: "[PHPLIB-DEV] OCINewCursor"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

